Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4746

Filling an array

$
0
0
Happy New Year to All-
I am trying to do a simple dumb thing and the complier barks at me. I am trying to fill an array with hex numbers.
Example below:
x var byte 'Loop counter var
L0B0 var byte[16] ' Loop Zero, Board Zero port array
For x=1 to 16
Lookup x,[$80,$80,$80,$80,$81,$80,$80,$81,$80,$80,$80,$81,$8 0,$80,$80,$81],L0B0[x]
next x

Error I get is:
Output parameter must be a variable

I am certain I have stared at it so long that I don't see the obvious so I am reaching out.
Regards to All!

Viewing all articles
Browse latest Browse all 4746

Trending Articles