Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ? mark in a parameterized statement
Message
From
07/08/2007 11:48:44
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using ? mark in a parameterized statement
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01246511
Message ID:
01246511
Views:
69
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
Next
Reply
Map
View

Click here to load this message in the networking platform