Btmnr‖

dj5DM‖CCur Function

iR5VT‖Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.

FVEx2‖Syntax:


4E7mH‖CCur(Expression As Variant) As Currency

GePPP‖Return value:

R6AfV‖Currency

WADQ4‖Parameters:

FnhL7‖Expression: Any string or a numeric expression that you want to convert to a number.
CCur(EMPTY) returns 0.

SEjHR‖Error codes:

5 Invalid procedure call

6 Overflow

EFSA4‖Example:


  Sub CCur_example
      Print CCur( expression := 145.279 * "654" )
      Print CCur( -258.0421E+02 )
  End Sub