declaration of variable variables

Results 1 to 2 of 2

Thread: declaration of variable variables

  1. #1 Guest

    Default declaration of variable variables

    i run an sql query that lists the distinct salesmen in my organization<BR><BR>SELECT DISTINCT salesman FROM database<BR><BR>each salesman needs 4 VBScript variables, or an array variable with 4 members, and each of these variables (or members) needs to be set to zero. all of the variables represent numbers and i add them up later in an IF filter.<BR><BR>my problem is that i cannot seem to declare the variables correctly with a DO..LOOP. so i am left with declaring them manually, which i dont want to do, cuz every time we get a new salesman, i have to edit the code.<BR><BR>i want a DO...LOOP that declares variables that look like this in vbscript:<BR><BR>&#060;% smith1=0<BR>smith2=0<BR>smith3=0<BR>jimmy1=0<BR>ji mmy2=0<BR>jimmy3=0<BR>%&#062;<BR><BR>thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default Explain your problem

    Explain clearly what you&#039;re trying to accomplish in your script (not how you plan on doing it), and a proper approach can be offered.

Posting Permissions

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