DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: CCur for VBS

Method: CCur for VBS

Converts an expression into the Variant type with the Currency subtype.

vCCur = Object.CCur(expression)
ObjectVBS
Object with this method. You do not need to specify this object.
expressionVariant
Specifies any expression.
vCCurVariant
Receives the converted value. During conversion the CCur method considers the locale settings of your computer, for example decimal points and thousands separators.

The following example converts a double value into the Currency subtype:

Dim MyDouble
MyDouble = 123.456789       ' Defines a Double
Call MsgBox(CCur(MyDouble)) ' Returns 123,4567 or 123.4567 depending on your local settings

See Also

Objects Overview

Related Topics

Abs | Asc | AscB | AscW | CBool | CByte | CCur | CDate | CDbl | CInt | CLng | CSng | CStr | ChrB | ChrW | Chr | Escape | Fix | Hex | Int | Oct | Sgn | UnEscape

In This Section
Was this information helpful?