Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array
#2
Take this for example:

Code:
Dim i(1 to 3) As Integer

i(1) = 100
i(2) = 50
i(3) = 25

Code:
Dim i1 as integer
dim i2 as integer
dim i3 as integer

i1 = 100
i2 = 50
i3 = 25

Exact same code. Except for with arrays, you can perform bulk operations.

Code:
dim i(1 to 10000) as long
dim j as long

For j = lbound(i) to ubound(i)
   i(j) = j \ i + i
next j

Now try doing THAT without arrays. :lol:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)