[Gambas-user] Methods Copy.

Benoit Minisini gambas at ...1...
Thu Jul 22 23:52:59 CEST 2004


On Thursday 22 July 2004 23:07, Leo Barnhoorn wrote:
> Hello Benoit,
>
> Can you tell me how the methode copy works of the Byte[] array.
>
> Thanks.
>
> Regards,
> Leo.
>

DIM hOld AS Byte[]
DIM hNew AS Byte[]

hOld[0] = 1
hNew = hOld.Copy()
hNew[0] = 2
PRINT hOld[0]

This returns 2. If you don't make a copy, this will return 1.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list