Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variable changes during tableupdate()
Message
De
22/02/2005 13:50:17
 
 
À
22/02/2005 13:33:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00989337
Message ID:
00989343
Vues:
17
A strange looking one indeed.

Is it possible that you have some dbc-resident code (stored procedures) that is also using the variable name?

good luck

PS Is the variable defined LOCAL or what?

>I have an old program now being rewritten in visual. It uses a public variable 'gnitemnumb'. When a TABLEUPDATE() is issued the variable value is changing. When we set DEBUG on and trace the code it does not change. The code is as follows:
>
>
>gnitemnumb = 1                         && variable is set
>TABLEUPDATE(.t.)
>wait window STR(gnitemnumb)            && displays a 0
>
>
>The name 'gnitemnumb' is not associated with the table in any way (i.e. field name, index name) and if we change the variable name to 'gnitemnumb1' it all works fine.
>
>Any ideas as to why this may be happening?
>
>Thanks,
>Hetty
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform