Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for passing a string with '?' thru SQLEXEC
Message
De
19/07/2006 10:10:59
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
19/07/2006 08:52:05
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01137400
Message ID:
01137592
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform