ICultureInfo.ParseCurrency

Syntax

ParseCurrency(Value: String): Currency;

Description

The ParseCurrency method converts the specified value to the currency type according to the regional standard settings.

Comments

If the conversion is not possible, the exception is generated.

Example

Sub UserProc;
Var
    CI: ICultureInfo;
    Cur: Currency;
Begin
    CI := CultureInfo.Current;
    Cur := CI.ParseCurrency("1234,56789");
End Sub UserProc;

After executing the example the Cur variable contains the value 1234.5679 obtained by converting from the specified string value.

See also:

ICultureInfo