Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table.field question
Message
 
 
To
17/07/2001 21:09:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00531816
Message ID:
00531828
Views:
10
>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform