Vince
Well, after trying to compile my previous example, I found that IT DOESN'T WORK!![]()
Not to worry, only one minor problem. The lookup statement doesn't seem to like having an array variable as the output.
Using a Temp variable then copying it to the array seems to work fine. So now it should look like this.
Also,Code:CLAR VAR BYTE[32] x VAR Byte Temp VAR Byte For x = 0 to 31 Lookup x,[0,1,0,1,1,1,1,0,1,1,1,1,1,0,0,1 ,1,1,1,0,1,1,1,1,0,0,0,1,0,0,0,0], Temp CLAR(x) = Temp Next x
picnaut has a good point about the bit arrays, and yes, the revised version will work with them. (I checked before saying that)
HTH,
Darrel Taylor




Bookmarks