Một số điều khiển, như các bảng HTML, rất phức tạp và đòi hỏi các dịch vụ của các trang bất động sản cao cấp cho thao tác tương tác. Một số duy trì các bộ sưu tập của các đối tượng, chẳng hạn như Các trang phức tạp bất động sản | Visual Basic 6 Black Book The Visual Basic Language privaSimpoPDF Merge andiSplit Unregistered Version - http Dim NumberTrains . End Sub In this case the variable NumberTrains is a variant which means it can take any type of data. For example here we place an integer value into NumberTrains note that we specify that 5 is an integer by using the percent sign suffix as specified in Table Private Sub Command1_Click Dim NumberTrains NumberTrains 5 End Sub We could have used other data types as well here for example we place a string into NumberTrains Private Sub Command1_Click Dim NumberTrains NumberTrains Five End Sub And here we use a floating point value is the suffix for single values Private Sub Command1_Click Dim NumberTrains NumberTrains End Sub Be careful of variants however they waste time because Visual Basic has to translate them into other data types before using them and they also take up more space than other data types. Converting Between Data Types Visual Basic supports a number of ways of converting from one type of variable to another in fact that s one of the strengths of the language. The possible conversion statements and procedures appear in Table . http 8080 temp ch03 2 of 4 3 14 2001 1 28 36 AM Visual Basic 6 Black Book The Visual Basic Language Table Visual Simpo PDF Merge and Split Unregistered Version - http data conversion Use This functions. To Do This ANSI value to string String to lowercase or uppercase Date to serial number Decimal number to other bases Number to string One data type to another Date to day month weekday or year Time to hour minute or second String to ASCII value String to number Time to serial TimeSerial TimeValue number Chr Format LCase UCase DateSerial DateValue Hex Oct Format Str CBool CByte CCur CDate CDbl CDec CInt CLng CSng CStr CVar CVErr Fix Int Day Month Weekday Year Hour Minute Second Asc Val TIP Note that you can cast variables from one