Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting a string for pager/email
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01182052
Message ID:
01182172
Vues:
16
>>
>>Did you try to use Environment.Newline instead of "\n"?
>
>I have never used this syntax. Could you please tell me if the following would be correct use of Environment.NewLine instead of "\n "?:
>
>
>PageMessage = "BLD: " + this.Building.Text.ToString() + Environment.NewLine + "ROOM: " + this.Room.Text.ToString()
>
>
>Thank you.

That is correct. If you are worried about performance and memory and stuff like that (if this is in a (tight) loop) you should use a StringBuilder object instead, but otherwise it is the correct syntax. Please let me know if you want me to post something about using a StringBuilder.

Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform