Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quotes, apostrophes in data
Message
De
24/07/2001 19:37:43
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
23/07/2001 19:46:25
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534017
Message ID:
00534749
Vues:
12
Always trying to outdo ourselves. :)
The following code corrects an error in my initial logic and is also far faster and shorter:

Public Function MakeNewString(ByVal InputString As String) As String

InputString = Trim(InputString)
Do While InStr(InputString, Chr$(34))
InputString = Left$(InputString, (InStr(InputString, Chr$(34)) - 1)) & Chr$(39) & Chr$(39) & Right$(InputString, Len(InputString) - InStr(InputString, Chr$(34)))
Loop
MakeNewString = InputString

End Function
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform