Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > CCur FunctionThis standard VB function converts an expression to the data type currency. SyntaxReturnsThe value of expression as a number of type currency. UsageCCur accepts any type of expression. Numbers that do not fit in the currency data type result in an Overflow error. Strings that cannot be converted result in a Type Mismatch error. Variants containing null result in an Illegal Use of Null error. ExampleThis example converts a yearly payment on a loan to a currency value with four decimal places. A subsequent Format statement formats the value to two decimal places before displaying it in a message box. Sub Button_Click See AlsoCDbl Function |
Siebel VB Language Reference |