[Gambas-user] Array
Leo Barnhoorn
leo.barnhoorn at ...246...
Mon Jul 26 02:15:13 CEST 2004
Hello Benoit,
What do i wrong.
nPad = 3
FOR i = 1 TO nPad
aBytes[8 - i] = nPad
NEXT
So the last 3 elements has to become 3.
element 7 = 0 after FOR NEXT still 0
element 6 = 0 after FOR NEXT still 0
element 5 = 0 after FOR NEXT still 3
When i do it like this:
aBytes[7] = nPad now it is 3
aBytes[6] = nPad now it is 3
aBytes[5] = nPad now it is 3
Can you tell me how to solve this.
Regards,
Leo.
More information about the User
mailing list