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
>TABLEUPDATE(.t.)
>wait window STR(gnitemnumb)
>
>
>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