Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Quotes in Variables
Message
 
À
09/09/2002 13:12:48
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00698389
Message ID:
00698464
Vues:
8
>I am reading the contents of a text file into VB variables. Some of the text contain two single quotes in succession ''. I need to replace the two '' with one " and then insert into a recordset. I am not using the insert statement I am using:
>
>rs.addnew
>rs!field = variable
>rs.update
>
>How do I go about this?
>
>Thanks!

try
rs!field = Replace(variable, "''", Chr(34))
Venelina Jordanova

Outsourcing IT Services Ltd.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform