Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Behaviour
Message
From
21/10/1998 10:42:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Strange Behaviour
Miscellaneous
Thread ID:
00148910
Message ID:
00148910
Views:
47
I had this code:

addrange = .Fields["l_f_add"].Value + "-" + .Fields ["r_t_add"].Value
MESSAGEBOX(addrange + " " + stname)
SUSPEND

In the debugger:

The first value, when I held my cursor over it, said "1800". The second value was "1899". Addrange was "0-0 ". This is with the "tooltips" type of thing.

In the locals window, addrange was "1800-1899". I put a watch on it. It said "0-0 ". The messagebox popped up with "0-0 ".

I was baffled.

With no clue what was wrong, I tried changing the variable name to "arange". Now everything's consistant and working fine.

Is there something special about addrange? It wasn't blue, so it shouldn't be reserved. Oh, also, I had declared addrange as a local variable.

Wierd, huh?

-Michelle
Reply
Map
View

Click here to load this message in the networking platform