Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00515140
Message ID:
00515277
Views:
19
For SPT, the following works:

lcSQL = "Select clClientID from CLIENTTYPE where clClientID = '" + CLIENT + "'"

>I found the part the causes problem: if I use a variable instead of a value in the where cause it won't work. For example:
>
>CLIENT = 'test'
>TEMP = "Select clClientID from CLIENTTYPE where clClientID = CLIENT"
>?SQLEXEC(gnquoteConn,TEMP,"Qt_num")
>It will return -1.
>
>TEMP = "Select clClientID from CLIENTTYPE where clClientID = 'test'"
>?SQLEXEC(gnquoteConn,TEMP,"Qt_num")
>it will work.
>any idea. thanks
>sherry
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform