NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.FromString

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;

Parameters

s
The string that is converted to a Currency.

Return Value

The Currency that is the value of the string.

Exceptions

Exception Type Condition
FormatException If the given string does not represent a valid Currency value.

Remarks

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.

See Also

Currency Structure | Currency Members | System Namespace