Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Apostrophe check
Message
De
28/01/2003 10:36:37
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Apostrophe check
Divers
Thread ID:
00746206
Message ID:
00746206
Vues:
59
Function SQLApostropheCheck(strCheckString As String) As String
If strCheckString = "" Then
SQLApostropheCheck = ""
Else
SQLApostropheCheck = Replace(strCheckString, "'", "''")
SQLApostropheCheck = Replace(strCheckString, "&", "&&")
End If
End Function


Hi,

The function above does not seem to deal with a single quote.
ie: if strCheckString = TEST' ORDER
Any ideas?

Thanks.

Alvin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform