Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLExec and variable
Message
From
02/04/2003 02:41:42
 
 
To
02/04/2003 02:02:48
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00772836
Message ID:
00772848
Views:
14
Hi Michel,

>What would be the proper approach to benefit of the use of a variable in a SQLExec()? For example, I have a lcCustomerID variable that I would like to use such as:
>

Are you trying to use VFP variable as parameter for SQLEXEC?
Then correct syntax is:
lnResult=SQLExec(lnHandle,'SELECT * FROM MyTable WHERE CustomerID = ?lcCustomerID')
Just add question mark before variable name.

Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform