Sergey:
Thanks again
Mal
>The OLDVAL() only works for fields that have been modified but not updated in a Visual FoxPro table or cursor that has row or table buffering enabled with CURSORSETPROP( ). See help for details.
>
>>Sergey:
>>
>>I was trying to do this becuase;
>>
>>After I did REPLACE Test.SomeField1 WITH .F.
>>? OLDVAL("Test.Field1")
>>.... it displayed .F. ... instead of the old value .T.
>>
>>Does OLDVAL() not work in the Command windows?
>>
>>Mal
>>
>>>< SNIP >
>>>>Test.SomeField1 = .T.
>>>>
>>>>I get an error "Object TEST is not found".
>>>>
>>>>Why is that?
>>>>
>>>>TIA
>>>>
>>>>Mal
>>>
>>>You cannot assign value to the table field like that. You have to use REPLACE or UPDATE - SQL to modify the table field. Therefore expression
Test.SomeField1 = .T.
is interpreted as assigment of .T. value to the property
SomeField1 of the
Test object wich doesn't exist.