Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataView/DataSet/DataReader
Message
From
09/01/2007 13:45:18
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
09/01/2007 13:39:12
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01183234
Message ID:
01183883
Views:
43
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform