General information
Category:
Coding, syntax & commands
Thanks Nadya ... got it :o)
>>Hi All:
>>
>>The following are via the Command window.
>>Open a database, then a table - ALIAS Test SHARED.
>>
>>? Test.SomeField1
>>.... displays .T.
>>
>>? Test.SomeField2
>>.... displays .T.
>>
>>? Test.SomeField1 = Test.SomeField2
>>.... displays .T.
>>
>>REPLACE Test.SomeField1 WITH .F.
>>? Test.SomeField1
>>.... dislays .F.
>>
>>? Test.SomeField1 = Test.SomeField2
>>.... displays .F.
>>
>>All of the above are as expected. Now, when I do;
>>
>>Test.SomeField1 = .T.
>>
>>I get an error "Object TEST is not found".
>>
>>Why is that?
>>
>>TIA
>>
>>Mal
>
>If you want to assign a value to a field, you should use replace command. You can not assign a value to a field using = operator. You can do it only for varialbes or for object properties... That's why you're having this error. VFP thinks, you have an object Test.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only