Type casting in VB 6 means converting from one data type to another. The VB 6 language allows type conversion using functions.
Here is a list of functions with their description.
Function | Description |
Chr | ANSI to string |
Format , LCase , UCase | String to Lowercase or Uppercase |
DateSerial , DateValue | Date to Serial Number |
Hex , Oct | Decimal to Hexadecimal or Oct |
Format , Str | Number to Str |
CBool , CInt , CByte , CLng ,CCur , CDate , CDec , CSng , CVar , CStr ,CVErr ,CDbl , Fix , Int | Convert from a data type to another |
Day , Month , Weekday , Year | Date to Day, Month, Weekday, or Year |
Hour , Minute , Second | Time to Hour, Minute, or Second |
Asc | String to ASCII value |
TimeSerial , TimeValue | Time to Serial number |
Val | String to number |