Converts a String to a Currency.
[Visual Basic] Public Shared Function FromString( _ ByVal s As String _ ) As Currency [C#] public static Currency FromString( string s ); [C++] public: static Currency FromString( String* s ); [JScript] public static function FromString( s : String ) : Currency;
The Currency that is the value of the string.
Exception Type | Condition |
---|---|
FormatException | If the given string does not represent a valid Currency value. |
The FromString method provides the functionality of converting a string to a Currency value.
The string must consist of an optional minus sign ("-") followed by a sequence of digits ("0"- "9"). The sequence of digits may optionally contain a single Currency point (".") character. Leading and trailing white space characters are allowed.