Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec and variable
Message
De
02/04/2003 02:41:42
 
 
À
02/04/2003 02:02:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00772836
Message ID:
00772848
Vues:
13
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform