Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for passing a string with '?' thru SQLEXEC
Message
From
19/07/2006 10:10:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/07/2006 08:52:05
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01137400
Message ID:
01137592
Views:
19
>That would work, however the text is question is user entered input that will appear on a web page. The '?' is an integral part of the text and needs to be preserved. I have found a work around using Postgres syntax to avoid the problem but there should be some native way in VFP to do this.

The variable holding the text can hold any text, including any punctuation. Just try
myvar="Any? Text! <tags> $# ... any?thing, includ'n apostrophes"
sqlexec(handle, "update ... set myfield=?myvar where...")
and it should swallow it without even blinking.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform