Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way to write long strings in VB.NET?
Message
De
16/02/2012 14:17:26
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01535583
Message ID:
01535592
Vues:
52
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>In C# I can use this syntax
>
>string myString = @"My very long
>multi line
>string";
>
>Is there anything like this in VB.NET or I have to split my command using + sign?

You could use + but almost certainly better to use the StringBuilder class...

UPDATE: Oh, I forgot this weird one:
Dim s As String = <string>
My very long
multi line
string
</string>.Value
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform