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

Click here to load this message in the networking platform