http://www.picbasic.co.uk/forum/show...ighlight=array
There are lots of tips and tricks there. It's under the FAQ section.
http://www.picbasic.co.uk/forum/show...ighlight=array
There are lots of tips and tricks there. It's under the FAQ section.
I saw that, but it is only seems relevant if you want to pull a bit out of a byte array.
What I want to do is pull a byte out of a byte array, but I cannot find the syntax to say 'assign this value to value X of the array'
Or am I looking straight at the solution without seeing it??
bill.
No: ch[64] var byte
Yes: ch var byte[64]
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Update :
This seems to let me define the blank array, although due to other issues I cannot compile it and test it. I am assuming that the fact I no longer get an error on that line means it will work.
<code>
for x = 1 to 64
<tab>ch0[x] = 0
next
</code>
I am now having issues getting single values into or out of the array. AM I DOING SOMETHING STUPID????
ch[1] = 255
will compile with a message 'ERROR: Redefinition of LABEL ch'
I am also trying to send a byte from the array out the HSEROUT command. I have tried :
HSEROUT[ch[2]]
but get a message about it being a Bad Expression.
Please help !!
bill.
Paul,
I just saw your post after I hit submit on the post I just completed.
Thank you for that. I can stop pulling out the hair I have left.
I knew I must have been doing something really stupid!!
Thanks again,
bill.
Bookmarks