Low cost ecommerce web development India flash website design 

Typecasting Functions

Typecasting allows you to convert between data subtypes.

§ CInt(expression) casts expression to an integer. If expression is a

floating-point value or a currency value, it is rounded. If it is a string that

looks like a number, it is turned into that number and then rounded if

necessary. If it is a Boolean value of True, it becomes -1. False becomes 0.

It also must be within the range that an integer can store.

§ CByte(expression) casts expression to a byte value provided that

expression falls between 0 and 255. expression should be numeric or

something that can be cast to a number.

§ CDbl(expression) casts expression to a double, expression should be

numeric or something that can be cast to a number.

§ CSng(expression) casts expression to a single. It works like CDbl(), but

must fall within the range represented by a single.

§ CBool(expression) casts expression to a Boolean value. If expression is

zero, the result is False. Otherwise, the result is True. Expression should be

numeric or something that can be cast to a number.

§ CCur(expression) casts expression to a currency value, expression

should be numeric or something that can be cast to a number.

§ CDate(expression) casts expression to a date value, expression should

be numeric or something that can be cast to a number, or a string of a

commonly used date format. DateValue(expression) or TimeValue

(expression) can also be used for this.

§ CStr(expression) casts expression to a string, expression can be any

kind of data.

freelance web designer India web development

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73