Results 1 to 2 of 2

Thread: Variables

  1. #1
    MC Guest

    Default Variables

    Hi,<BR><BR>I would like to know if I can use the same variable several times? (the variable i)<BR>Sub Checkit()<BR> For i = 0 to Beynp<BR> ...<BR> Next<BR>End Sub<BR><BR>SQL = "SELECT * FROM WebLinks "<BR><BR>If method = "anywords" Then<BR>...<BR> For i = 0 To Beynp<BR> If Len(bey(i)) &#062; MinLlength Then<BR> SQL = SQL & " OR LTitle LIKE &#039;%" & bey(i) & "%&#039;"<BR> SQL = SQL & " OR LKey LIKE &#039;%" & bey(i) & "%&#039;" <BR> End If<BR> Next<BR>...<BR>ElseIf method = "allwords" Then ...<BR><BR>Thank you!

  2. #2
    Join Date
    Dec 1969

    Default RE: Variables

    You can use a variable as may time as you like on the page that it is declared on. If you go to another page though you will need to pass it to the next page using any number of methods available.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts