Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What could cause error on this line
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01526039
Message ID:
01526042
Views:
121
This message has been marked as a message which has helped to the initial question of the thread.
>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.


The string literal can not exceed 256 chars,
Try to put this in TEXT ENDTEXT block
TEXT TO cSqlInsert NOSHOW PRETEXT 15
    insert into Mytable 
           (fld1, fld2, fld3)
    values 
           (?MyTable.fld1, ?MyTable.fld2, ?MyTable.fld3)
ENDTEXT
BTW that way is more readable :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform