Lookup question
jwa861
Posts: 1
Hello all,
Is there a way in spin to use a predefined array in the DAT block?
ie
repeat Index from 1 to 7
Temp:= lookup(??myArray??)
Print(Temp)
DAT
myArray byte 5, 4, 7, 1, 3, 2, 6
Thanks
Jeff
Is there a way in spin to use a predefined array in the DAT block?
ie
repeat Index from 1 to 7
Temp:= lookup(??myArray??)
Print(Temp)
DAT
myArray byte 5, 4, 7, 1, 3, 2, 6
Thanks
Jeff
Comments
Within the same object use,
tempByte := myArray[idx]
or more generally (where @myArray can be passed between objects) use
tempByte := byte[@myArray][idx]