Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when reserved word is PART of a field name
Message
From
09/05/2002 13:25:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00654601
Message ID:
00654622
Views:
13
>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)

Dan,
I think it was before SP1. Did you apply SP1 ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform