Visual Basic Language Reference  

Conversion Summary

Visual Basic language keywords and run-time library members are organized by purpose and use.

Action Language element
ANSI value to string. Chr, ChrW
String to lowercase or uppercase. Format, LCase, UCase
Date to serial number. DateSerial, DateValue
Decimal number to other bases. Hex, Oct
Number to string. Format, Str
One data type to another. CBool, CByte, CDate, CDbl, CDec, CInt, CLng, CSng, CShort, CStr, CType, Fix, Int
Date to day, month, weekday, or year. Day, Month, Weekday, Year
Time to hour, minute, or second. Hour, Minute, Second
String to ASCII value. Asc, AscW
String to number. Val
Time to serial number. TimeSerial, TimeValue

See Also

Keywords and Members by Task | Visual Basic Language Keywords | Visual Basic Run-Time Library Members