Arrays Arrays Arrays
multidimensional Array Example 2 dimensions ReDim
Arrjugadores (0 to 1, 0 to 11) As String
'Best futobolistas
Arrjugadores
Europe (0, 0) = "Zinedine Zidane"
Arrjugadores (0, 1) = "Henry"
Arrjugadores (0, 2) = "Owen"
Arrjugadores (0, 3) = "Raul"
Arrjugadores (0, 4) = "Ruud van Nistelrooy "
Arrjugadores (0, 5) =" Shevchenko "
Arrjugadores (0, 6) =" Lilian Thuram "
Arrjugadores (0, 7) = "Nesta"
Arrjugadores (0, 8) = "Davor Zucker"
Arrjugadores (0, 9) = "Bergkamp"
Arrjugadores (0, 10) = "Figo"
Arrjugadores (0, 11) = "Cristiano Ronaldo "
'Mejores futobolistas America
Arrjugadores (1, 0) =" Ronaldo "
Arrjugadores (1, 1) =" Batistuta "
Arrjugadores (1, 2) =" Enzo Franchescoli "
Arrjugadores (1 , 3) = "Romario"
Arrjugadores (1, 4) = "Ortega"
Arrjugadores (1, 5) = "Ronaldinho"
Arrjugadores (1, 6) = "Roberto Carlos"
Arrjugadores (1, 7) = " Emerson "
Arrjugadores (1, 8) =" KaKa "
Arrjugadores (1, 9) = "Rivaldo"
Arrjugadores (1, 10) = "Adriano"
Arrjugadores (1, 11) = "Gamarra"
* To delete the items in the array erase
Arrjugadores
Saturday, May 17, 2008
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:
Posts (Atom)