Simply because variable A0 has not been declared! Add A0 var Byte to your code....... As i try to compile I encounter an error here
For A0 = 1 to Ret_count -1
Not quite sure why ?
While wend loop could work as well, if properly structured.
Remember you should place two limits: Ret_Count cannot be greater then the array dimension and # command should be ignored if Ret_Count = 0.
Al.
Bookmarks