Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

CCur Function

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

Syntax:


CCur(Expression As Variant) As Currency

Return value:

Currency

Parameters:

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

Error codes:

5 Invalid procedure call

6 Overflow

Example:


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