Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way to write long strings in VB.NET?
Message
 
 
À
16/02/2012 13:56:44
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:
01535588
Vues:
42
>>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?
>
>
>Think you have to split
>
>
>    Sub Main()
>		Dim s As String = "abc " _
>			  & "ppp " _
>			  & "qqq"
>
>
>
>		Console.WriteLine(" {0}", s)
>		Console.ReadLine()
>
>    End Sub
>
Yes, I wanted to answer someone's VB.NET question in T-SQL forum, but was lazy splitting the script...

That's one thing VB.NET is missing.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform