Hello Unregistered ,
Originally Posted by EarlyBird2 Obviously I do not know how this code fits into your main program but here is an idea that could be of use. Code: WHILE val > 5 val = val - 6 wend val = 1 << val I am not sure about this line "val = 1 << val " just try it is all I can suggest. Sheldon, I have tested this and it works a treat. It must save a lot of code space compared to your original three lines?
WHILE val > 5 val = val - 6 wend val = 1 << val
Steve Earl www.datageo.co.uk
Forum Rules
Bookmarks