Currency.Parse

Syntax

Parse(Value: String): Currency;

Parameters

Value. The string value that must be converted into the Currency type.

Description

The Parse method converts a string value into the Currency type without validation.

Comments

This method does not take into account specified regional parameters. The . symbol that is used to divide integral and fractional parts of number should be used in the value passed by the Value parameter; decimal separator is not used.

If converting fails, an exception is thrown.

Example

Sub UserProc;
Var
    c: Currency;
    s: String;
Begin
    s := "1234.56789";
    c := Currency.Parse(s);
End Sub UserProc;

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

See also:

Currency