Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when reserved word is PART of a field name
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error when reserved word is PART of a field name
Miscellaneous
Thread ID:
00654601
Message ID:
00654601
Views:
52
Hello all,

Anyone seen this one:

I have a field in a table named cf_text. I SCATTER NAME lorecord to make an object for a record.

x=lorecord.cf_text --generates a syntax error when the code is run, but not from the command window.

x=lorecord.cf_text -- generates an error when trying to save the code, but

with lorecord
x= .cf_text
endwith
--does not generate a syntax error when the code is saved.


If I change it to .cf_Ctext everything is fine, so I assume it's choking because _Text is a reserved word. I can't imagine that the reserved word restrictions are intended to restrict using them in any part of a word.

Anyone seen this before? (VFP7.0)
Next
Reply
Map
View

Click here to load this message in the networking platform