[Gambas-user] Array

Leo Barnhoorn leo.barnhoorn at ...246...
Mon Jul 26 03:58:41 CEST 2004


Hello Benoit,

I have found the problem, again my thinking.

It has to be down up

Regards,
Leo.


On Monday 26 July 2004 02:15, Leo Barnhoorn wrote:
> 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.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list