Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3755

Probably a silly newbie question but

$
0
0

I can declare a list of local variables and initialise them all to zero.
eg
Var a,b,c,d,e,f,g,h as integer = 0

My routine loops through a dataset and changes these variables which I then use accordingly.
If I now move to the next record and I want to reset these variables to zero. I could use some sort of method I suppose to do this, but to keep the code really simple is there a way to reset them as a one line list again or do I have to (as I am doing) reset each to zero on separate lines
ie
a = 0
b = 0 etc

thanks

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3755

Trending Articles