Kardi Teknomo
Kardi Teknomo Kardi Teknomo Kardi Teknomo
     
 
Research
Publications
Tutorials
Resume
Personal
Resources
Contact

 


How to Obtain Values from an Array?

 

Syntax: VarName = ArrayName(index)
Example:


Dim I As Integer
Dim MatrixA(3 To 10) As Double
Dim myVal as Double

For I = 1 To 10

MatrixA(I) = I * Rnd + 1
Me.Print Format(MatrixA(I), “0.00”)
Next I

Note: refer to VB help file for explanation about Format.

<Previous lesson | Table of Content | Content of this Chapter | Next lesson>

 
 
© 2006 Kardi Teknomo. All Rights Reserved.
Designed by CNV Media