gnitemnumb = 1 && variable is set TABLEUPDATE(.t.) wait window STR(gnitemnumb) && displays a 0The 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.