Is there a function to do the above conversion while PRESERVING decimals in VB4?
example: "1011.12" ---> 1011.12
Old Man
Printable View
Is there a function to do the above conversion while PRESERVING decimals in VB4?
example: "1011.12" ---> 1011.12
Old Man
dont know if this works in vb4
but in 6..
Code:cDbl("13.3")
should preserve everything :)Code:Val("13.3")
Both work!
Old Man
Code:
- CBool convert to Boolean
CByte convert to Byte
CCur convert to Currency
CDate convert to Date
CDbl convert to Double
CDec convert to Decimal
CInt convert to Integer
CLng convert to Long
CSng convert to Single
CVar convert to Variant
CStr convert to String
But Val will convert to the optimized datatype :p