Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - Is LEFT an invalid field name?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01428149
Message ID:
01428220
Views:
55
>>Compile or run this and you get a syntax error. It appears the field name left is not allowed. However, I was able to select it with SQL. This statement has 42 fields in my program and it took a while to narrow it down to this one field. Remove it and it runs, leave it in and CRASH! Anyone got any comments?
>>
>>
update pageobj ;
>>set left = c_pageobj.left ;
>>from c_pageobj ;
>>where c_pageobj.k_pageobj = pageobj.k_pageobj ;
>>and c_pageobj.k_page = pageobj.k_page
>
>Why are you so surprised? 'Left' is twice reserved word in VFP: a property name and function name.

Thanks for the replies folks. The truth is that after taking some amount of time combining two fields into one throughout my entire program late yesterday I was really bent out of shape when it crashed. I realize now I was mostly venting in my post. Sorry. I am much more rational after a good nights sleep. I guess I will also change the top, width and height field names just to be safe.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform