Pass word array to method
Tumbler
Posts: 323
Hi
How can i send an array of words to this method?
How can i send an array of words to this method?
PRI WriteLine(data)| char
repeat strsize(data) 'Iterate over the string.
char := byte[data++]
writeSerNoLatch(getChardata(char)) 'get char data and send to shiftregisters
Latch

Comments
And what if data[2] is zero?
PUB Main | data[8] data[0] := 100 data[1] := 1024 ... data[7] := 32768 data[8]:= 0 'zero termination? WriteLine(data) PRI WriteLine(data)| char repeat strsize(data) 'Iterate over the string. char := byte[data++] writeSerNoLatch(getChardata(char)) 'get char data and send to shiftregisters LatchAre you attempting to put numbers in a display? If so, we'll need to know more about it.
This is the problem with program fragments that don't provide an explanation or context -- it forces those of us that would help you into being mind readers, something none of us is particularly good at.