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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement