Alias of variable

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
arco
Posts: 312
Joined: 15 Apr 2008 13:54
Location: The Netherlands

Alias of variable

#1 Post by arco » 17 Sep 2018 16:35

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]
Regards,

Peter.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”