Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > CInt FunctionThis standard VB function converts an expression to the data type integer by rounding. SyntaxReturnsThe value of expression as an integer. UsageAfter rounding, the resulting number must be within the range of -32767 to 32767, or an error occurs. Strings that cannot be converted to an integer result in a Type Mismatch error. Variants containing null result in an Illegal Use of Null error. ExampleThis example calculates the average of ten golf scores. Sub Button_Click See AlsoCCur Function |
Siebel VB Language Reference |