How to define vb array

angryTom
Release: 2020-02-18 14:45:24
Original
12355 people have browsed it

How to define vb array

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 moreIntroduction to Programmingrelated 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!