Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table.field question
Message
 
 
To
17/07/2001 21:28:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00531816
Message ID:
00531827
Views:
11
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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform