-
-
Erfahrener Benutzer
Robotik Einstein
na dann...
aber bekomt man ethernet mit Bascom hin? da ist doch bestimmt auch die vollversion nötig? aber ich glaub die war nicht ganz so teuer...
arrays gehen übrigens auch in Bascom (siehe hilfedatei):
Arrays
An array is a set of sequentially indexed elements having the same type. Each element of an array has a unique index number that identifies it. Changes made to an element of an array do not affect the other elements.
The index must be a numeric constant, a byte, an integer , word or long.
The maximum number of elements is 65535.
The first element of an array is always one. This means that elements are 1-based.
Arrays can be used on each place where a 'normal' variable is expected.
Example:
'create an array named a, with 10 elements (1 to 10)
Dim A(10) As Byte
'create an integer
Dim C As Integer
'now fill the array
For C = 1 To 10
'assign array element
A(c) = C
' print it
Print A(c)
Next
'you can add an offset to the index too
C = 0
A(c + 1) = 100
Print A(c + 1)
End
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
-
Foren-Regeln
Lesezeichen