VB6 Tutorial 56: User Defined Types
The user defined type in Visual Basic 6 is a compound data structure. It holds several variables of different data types. After defining a UDT, you can assign values to the member variables of the UDT.
The user defined type in Visual Basic 6 is a compound data structure. It holds several variables of different data types. After defining a UDT, you can assign values to the member variables of the UDT.
Visual Basic 6 is rich in data types. So you should know the usage of all the data types to make a powerful application. Integer values Among the data types for storing integer values, Integer is the most used data type for its efficiency. But sometimes you may use the Long data type instead of Integer especially when… Read More »
Collections are objects in Visual Basic that are used to store a group of data values. Collections are similar to array. But there are some special features that differentiate the collections from arrays.
Up to this point, we have discussed array of variables. Similarly you can also have an array of controls by grouping a set of controls together. The controls must be of the same type like all TextBoxes or all CommandButtons.
In case of a fixed size array, we have seen that the size of the array is fixed or unchanged, but there may be some situations where you may want to change the array size. A dynamic array can be resized at run time whenever you want. Declaring dynamic arrays Declare the array with empty dimension list. For… Read More »
An array can be multi-dimensional that means, it can have more than one dimension. A list of data is represented in a one-dimensional array where a multi-dimensional array represents a table of data. An array can be two dimensional, three dimensional and so on. We generally don’t need an array of more than two dimensions, it is enough… Read More »
An array is a collection of items of the same data type. All items have the same name and they are identified by a subscript or index. When you need to work with several similar data values, you can use array to eliminate the difficulties of declaring so many variables.
The Visual Basic 6 language provides so many built-in constants that save your time and effort for programming.
There are many useful functions for the date-time operations in VB6. Visual Basic gives you enough power for handling the date and time. Here you’ll learn about those functions in brief.
In this lesson, I’ll talk about the file system controls in VB6. To work with the file system, the DriveListBox, DirListBox and FileListBox are used together that will access the files stored in the secondary memory of your computer. The DriveListBox shows all the drives on your computer, the DirListBox displays all the sub-directories of a given directory,… Read More »