|
VB handles a lot of data type conversion for you in the background.
For example, the text box control is quite clearly a String data type.
However, you can assign a number or a date/time to the text box.
You can also assign a string variable (as long as it is a "number") to
an integer data type. To make your VB codes more standardized and for
future maintenance,
you can use the built-in conversion functions to convert data from one
type to another. The conversion functions supported by VB are:
Exercise 1 |