Monday, June 6, 2011

Array is a single variable that can hold multiple values

Array is a single variable that can hold multiple values​​. Each value stored in a different array index.

Arrays are typically used to collect data that can be prepared based on certain numbers. For example, to keep high all the students of Information Systems Studies Program, Faculty of Science and Technology, University of Respati Yogakarta will further simplify its management when stored in the array. So the declaration of Array for high-data can be done as follows:

Dim Appeal (1000) As Single

High (1) = 165.5

High (2) = 175.5

High (3) = 180

ff

You note the index (1), (2), (3) at the end of the High Variable name. The index is a differentiator from each container value. In the declaration Array High (1000) means that the highest index is 1000. When you make statements like the following:

High (1001) then the interpreter will display the details wrong because of your height array variable declaration to limit the index to 1000.

No comments:

Post a Comment

 
THANK YOU FOR VISITING