Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What could cause error on this line
Message
 
To
12/10/2011 06:32:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01526039
Message ID:
01526119
Views:
40
To be totally honest, I never used views in my life, but I thought this is was a runonce kind of conversion no?


>>>Hi,
>>>
>>>I am getting an error a line very similar to the following. The error says "command contains unrecognize phrase/keyword".
>>>
>>>
>>>cSqlInsert = "insert into Mytable (fld1, fld2, fld3) values (?MyTable.fld1, ?MyTable.fld2, ?MyTable.fld3)"
>>>
>>>
>>>The list of fields is actually considerably longer. But what should I be looking at? TIA.
>>
>>Wouldn't it have made more sense to have created views around the msql table and then apply a scatter memvar, insert into .... from memvar? (admittedly for the last time?) :
>
>Not necessarily - views carry maintenance, there's the dbc contention, and, besides, with views you're letting Fox do things automatically behind your back. With SPT you have much more control. Even in the case at hand, one can check for unchanged fields and omit them from the string - feasible with views, too, but not as easily.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform