Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File named 'Fields'
Message
 
To
14/07/1999 22:41:43
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00241370
Message ID:
00241630
Views:
10
Absolutely, Al. You notice I said "Temporary" fix. Reserved words can cause problems in strange places - the one I see in every project I've ever worked on is a field named DESC for "description". Works just fine until it's in the wrong position of an SQL query.


>Hmmm... are you certain that all VFP commands that can reference an alias will work properly with an alias of "FIELDS"? If not, it would be better to accept that a mistake was made and do all the fixes now. This is the sort of situation that can come back to haunt you if not fixed properly.
>
>>As a temporary fix, you might consider renaming the table to "MyFields" (or whatever) and then adding an ALIAS FIELDS clause wherever you have used it. This way the only code that will have to be changed will be the lines where you open the table.
>>
>>HTH
>>Barbara
>>
>>>One of my databases contains a table named "fields." I get an error whenever I try to modify this table in Stonefield. I suspect it is because of the table name causing a conflict. Is this true?
>>>
>>>Elyse
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform