Monday, January 26, 2009

How to declare array in vb6.0?

Example:

Dim myArrayName(0 To 5) As String

'The range of this array is 0 to 4 only.
'Data type is String it means you can store only string value in your array.

myArrayName(0)="John"
myArrayName(1)="Mario"
myArrayName(2)="Mark"
myArrayName(3)="Ailey"
myArrayName(4)="Merbert"

No comments:

Post a Comment

 

blogger templates | Make Money Online