Hmm, interesting. I'll have to check that out.
You must be right because when I add the following line at the top of the subroutine it works correctly.
Let>0=1-1
Thanks for the quick reply! I never would have thought it possible to create a variable with a name of 0.
Search found 2 matches
- Mon Dec 03, 2007 10:41 pm
- Forum: Technical / Scripting
- Topic: Variable Incrementing By 1 Problem - When 0 + 1 = 2
- Replies: 2
- Views: 3494
- Mon Dec 03, 2007 7:48 pm
- Forum: Technical / Scripting
- Topic: Variable Incrementing By 1 Problem - When 0 + 1 = 2
- Replies: 2
- Views: 3494
Variable Incrementing By 1 Problem - When 0 + 1 = 2
I'm currently having an extremely annoying math problem in my macro. Below is the code that I'm using and the debug logging results when it gets to this section of code. I start off by setting the variable to zero then I add 1 to the variable. For some reason the macro thinks the value of the variab...