Page 1 of 1

Alias of variable

Posted: 17 Sep 2018 16:35
by arco
I have an array of bytes, and I want to use aliases to access bytes within the array
Why is it only allowed to alias byte 0 of the array, and not others?

Code: Select all

Dim MyArray As Byte[128]

Dim MyByte As Byte At MyArray      'Allowed to alias MyArray[0] and works fine
Dim MyByte As Byte At MyArray[24]  'Not allowed to alias MyArray[24]