Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Behaviour
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Strange Behaviour
Divers
Thread ID:
00148910
Message ID:
00148910
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform