How to define a vb array
There are two ways to define an array:
1. Know the number of elements in the array, Then directly define dim a(9) as integer
2. If the number of elements is not known for the time being, or the array is used in multiple places, then define the following definition dim a() as integer when using it, and then redefine it Just click ReDim a(9)
The type of the array can be the same as the type of the variable. dim a(0 to 9) as string 'indicates that a string array containing 10 elements is defined. The array name is: a
Extended information:
1. Visual Basic is derived from the BASIC programming language.
2. VB has a graphical user interface (GUI) and rapid application development (RAD) system. You can easily use DAO, RDO, and ADO to connect to the database, or easily create Active X controls for efficient generation. Type safety and object-oriented applications. Programmers can easily use the components provided by VB to quickly build an application.
For more Introduction to Programming related knowledge, please pay attention to the PHP Chinese website! !
The above is the detailed content of How to define vb array. For more information, please follow other related articles on the PHP Chinese website!