Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Problem
Message
De
22/05/2001 18:35:05
 
 
À
17/05/2001 16:03:35
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00508496
Message ID:
00510125
Vues:
16
>I have a string and I want to assign a string that contain ".
>
>I have to put " to mark the start and the end of the String, but I want to include the " within the String too...How Can I do that in VB??

You can double up on them: e.g.

MyString = "She said, ""Hello"""

or concatenate using the Chr() function

MyString = "She said, " & Chr(34) & "Hello" & Chr(34)
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform