Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Apostroph in variable!
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problems with Apostroph in variable!
Divers
Thread ID:
00209007
Message ID:
00209007
Vues:
68
Hello,
I'm using a variable in the WHERE clause of a SQL Statement. The variable looks like so:
cMyVar = "ALLTRIM(MyTable.MyField) = '" + ALLTRIM(THIS.VALUE) + "'"

Naturally, if MyTable.MyField contains an apostroph (like "De'Isle"), I get a syntax error :-(
What do I have to do in this case?
Thanks in advance for your help!
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform