Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
StringBuilder AppendFormat function
Message
 
 
À
13/02/2008 12:34:06
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01292192
Message ID:
01292265
Vues:
21
>>>>>AppendFormat just adds to the end of a string. It allows you to "parameterize" content of the string. It has nothing to do with CR/LF.
>>>>
>>>>Fred,
>>>>
>>>>I read the help of AppendFormat function. My question was WHY I do not see some sort of visual indication that I have CRLF in the generated string in the Debugger.
>
>Exactly where are you viewing this in the Debugger. The string in a watch window should show the relevant '\n' or '\r\n' sequence. And as mentioned in another post using the 'Text Visualizer' option will show the fomratted output. BTW, according to help '\n' is Unix new line and '\r\n' is non-Unix. Using Environment.NewLine should guarantee the correct sequence....

I'm just doing it like in VFP by pointing the mouse to the code and seeing this variable.

Ok, I change to Environment.NewLine, though this is now a minor point when I have bigger problems - site doesn't work in FireFox, I get Service unavailble when I try to test on the live server and with my credentials I now seem to unable not re-start IIS.

Also there is a visual appearance problem I can not figure out how to solve. In one of the columns in the GridView the textbox is out of place (e.g. lower than the rest of columns). I don't know what to do.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform