Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ? mark in a parameterized statement
Message
De
07/08/2007 11:48:44
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Using ? mark in a parameterized statement
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01246511
Message ID:
01246511
Vues:
70
Hi All..

I am updating a database using SQL passthrough. Listed below is the part of sample code I use:

*-- Sample Code
gnC = SQLCONNECT("test_database")

lcSQL = "INSERT INTO cHistory (trn_numb, trn_date, itm_desc, id) " +;
" VALUES (?cTemp.trn_numb, ?cTemp.trn_date, ?cTemp.itm_desc, ?lnId) "

=SQLEXEC(gnC, tcSQL)
*-- End

The problem I am having is if user keys in ? mark as part of any fields such as Description, I get a syntex error. Is there any work around this problem.

Thank You in advance...

Sincerely,

Raza Malik
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform