Sunday, May 11, 2008
Free Mouthwash Piano Sheet Music
Arrays Using an array we refererir to a "number of elements" for a "same name" and referenced an element of the series for a number of index.
ArraySuperClubes (1) = "Real Madrid"
ArraySuperClubes (2) = "Barcelona"
ArraySuperClubes (3) = " Milan "
ArraySuperClubes (4) =" Inter Milan of "
ArraySuperClubes (5) =" Manchester United "
In this example we'll prove more clearly
1 ) We refer to a number of items by the same name in this case will ArraySuperClubes .
suffice For example something like sgte instruction to load the elements of our in a control array listbox 1
represents ArraySuperClubes 5 elements of our array
listbox 1. list ArraySuperClubes =
2) Referenced an element of the series for a number of index. For example
If we wanted reference to the element "3" of our ArraySuperClubes () Msgbox
ArraySuperClubes (3)
note: As with the variable declaration must have
account
Arrays of variables ( static )
means that our array shall a fixed number of items here
is important to consider the scope array declaration of
as is done with the variables on a daily basis . That is
-level procedure, module or pubic (available for the entire project)
Examples: Dim
_ Array Spain (20) as string
' pled an array of 21 items ranging from zero index ..
_ Array Portugal (0), Array
_ Portugal (1), Array
_ Portugal (21)
Dim ArrayBidimensionalXy (1 to 4 , for a 4) the integer
'was declared 2 dimensional array
ArrayBidimensional with 4 * 4 elements ArrayBidimensional (1.1) ... ArrayBidimensional (4.4)
Public New _X (1 To 20) The String * 20 Public
New _X (1) ... Public New _X (20),
each element can store a string (20 characters).
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment