Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataView/DataSet/DataReader
Message
De
09/01/2007 13:45:18
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
09/01/2007 13:39:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01183234
Message ID:
01183883
Vues:
44
>>sDispStr += TRow("field1").ToString() + ", " + TRow("field2").ToString() + " – " + TRow("field3").ToString() + TRow("field4").ToString() + vbCRLF or
>sDispStr += CStr(TRow("field1")) + ", " + CStr(TRow("field2")) + " – " + CStr(TRow("field3")) + CStr(TRow("field4")) + vbCRLF
>
>I prefer .ToString, as inevitable the user is going to want the output formatted, and replacing Cstr's is annoying! :-)

That if the field is a type diferent from string, cause otherwise there is no formating in the ToString method. Instead you will need to use the String.Format Method. ;)
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform