by Dinesh Thakur Category: Array

a) Arrays:

A variable array can contain a list of values, similar to list box or combo box. VB actually stores the list property of a list box or a combo box in an array.

 

b) Element:

Each individual variable is called an element of the array. The individual elements are treated the same as any other variable and may be used in any statement, such as an assignment or a Printer.Print.

c) Subscript:

The subscript which may also be called an index inside the parenthesis is the position of the element within an array. Subscripts may be constants, variables, or numeric expressions. Although the subscripts must be integers, VB will round any non integer subscript.

d) Control array:

A control array is a group of controls that all have the same name. All controls in an array must be the same class. An advantage, of using control array, rather than independent controls, is that the controls share one Click event.

e) Subscripted Variables:

The subscript which may also be called an index inside the parenthesis is the position of the element within an array. Subscripts may be constants, variables, or numeric expressions. Although the subscripts must be integers, VB will round any non integer subscript. The real advantage of using an array is not realized until we use variable for subscripts in place of the constants.

strName(intIndex) = “”

Printer.Print strName(intIndex)



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.