Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public variable changes during tableupdate()
Message
From
22/02/2005 13:50:17
 
 
To
22/02/2005 13:33:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00989337
Message ID:
00989343
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform