![]() |
Forum Index : Microcontroller and PC projects : PEEK problem
Author | Message | ||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1116 |
Geoff, It appears that the function PEEK(VARADDR var()) creates a zero length array which can not be erased, reDIM'd or have any data entered into it - see code below:- > new > clear > dim a$(5) > a$(0)="A" > a$(4)="B" > erase a$ > dim a$(8) > a$(0)="T" > a$(7)="P" > erase a$ > a$(0)="H" Error: A not declared > ' all as you would expect > new > clear > a$(0)="K" Error: A not declared > ' as you would expect > print hex$(peek(varaddr a$())) A001DEF8 > a$(0)="Y" Error: Index out of bounds > erase a$ Error: Cannot find A > dim a$(4) Error: Index out of bounds > Unsure if this classifies as a bug or just a limitation to take note of. For your info. Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9643 |
Nice find. ![]() Looks like it might be a bug. Smoke makes things work. When the smoke gets out, it stops! |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3303 |
Good one, thanks. Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |