fb:porticula NoPaste
@Erik - Sub/Array - Variante 2
Uploader: | Sebastian |
Datum/Zeit: | 30.07.2008 16:35:31 |
Declare Sub Erik(Array() As Integer)
Dim Feld(1 To 5) As Integer
Dim i As Integer
Randomize Timer
Print "Zufallszahlen erzeugen"
For i = 1 To 5
Feld(i) = Int(RND*100)+1
Print Feld(i)
Next i
Print "Jetzt die SUB..."
Erik Feld() 'Array als Argument übergeben
Sleep
End
Sub Erik(Array() As Integer)
Dim i As Integer
For i = LBound(Array) To UBound(Array)
Print Array(i)
Next i
End Sub