Jump to content

Creating a unique variable while looping


Recommended Posts

Hi,I have a loop and I want a new variable to be created each time the loop goes round. Some simplified code:

i=1do while i <3SQL="select...."rs1=execute SQLvarCost=rs1("cost")i=i+1loop

I would like it so that varCost changed to varCost1, varCost2, varCost3 etc. :)Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...