There can be only one Microsoft.VisualBasic namespace :-) -dave
-----Original Message----- From: Bostrup, Tore [mailto:[EMAIL PROTECTED]] ... how 'bout "they are"...? :-> Tore -----Original Message----- From: David L. Penton [mailto:[EMAIL PROTECTED]] YUK! Again... IMHO, you want to stay away from functions in Microsoft.VisualBasic namespace since it IS merely A wrapper for the base Dot.Net namespaces/classes - dave -----Original Message----- From: David L. Penton [mailto:[EMAIL PROTECTED]] Yes it is C# "code", but the function is not C#. It is a member of the System.String class. Here is a VB.Net example: Dim s As System.String = _ System.String.Format("Formatted currency: {0:c}", myVal) IMHO, you want to stay away from functions in Microsoft.VisualBasic namespace since it are merely wrappers for the base Dot.Net namespaces/classes -----Original Message----- From: Matthew Small [mailto:[EMAIL PROTECTED]] Is that a VB or C++/C# function? I notice the semicolon at the end of the line. I am programming in VB. Sorry that I omitted that, I forget that ASP has multiple languages. Matthew Small IT Supervisor Showstopper National Dance Competitions 3660 Old Kings Hwy Murrells Inlet, SC 29576 843-357-1847 http://www.showstopperonline.com -----Original Message----- From: David L. Penton [mailto:[EMAIL PROTECTED]] System.String.Format() is the next best thing since sliced bread... System.String s = System.String.Format( "Formatted currency: {0:c}", myVal); -----Original Message----- From: Matthew Small [mailto:[EMAIL PROTECTED]] Hi everyone - I'm developing my first application in ASP.NET (I never used Original ASP at all). I have a price that I am bringing out of the database as currency and I am putting the value into a label using label.text = table.price. Is there a function or something that I can use to format this label with dollar sign and decimal? Thanks, Matthew Small IT Supervisor Showstopper National Dance Competitions 3660 Old Kings Hwy Murrells Inlet, SC 29576 843-357-1847 http://www.showstopperonline.com --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
