Parse(Value: String): Currency;
Value. The string value that must be converted into the Currency type.
The Parse method converts a string value into the Currency type without validation.
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.
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: