Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00515140
Message ID:
00515502
Vues:
17
Mark:
If I have the following statement:

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

can I then use this command:

sqlexec(gnconn,lcSql,"mycursor")

when I do that it returns empty set, but if put the sql statement in SQLEXEC then it works. My extact codes are:
m.client_id = TEST.CLIENT
clSQL = init_val.sql_str
sqlexec(gnconn,lcSql,"mycursor")
I tried to put alltrim around init_val.sql_str, it did not work. I copied the content from init_val.sql_str and pasted in the SQLEXEC. It works. any idea on that? thanks
sherry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform