The Equiv of VB6's Format in C#
Posted on 2004-08-10
I am recieveing a foramt string from a database descibing it's current format in a C# class.
which descibes how to format a number (comma's for thousands and brackets for negative numbers)
In my old VB6 days I used to use the Format function
' would return 1,000,000
' would return (1,000,000)
I've looked around and the closest I can find is String.format but it doesn't accept my format as a valid format. They do have the equivilant of what I want but then I would have to evaluate every possible format and find the equivilant.
Is there something obvious (which I suspect) I am missing ???