thats agood idea, I used a similar switch arrangment but I will drop my if then statement and use Select case, I dod not know it was in picbasic, I used it in C++ a long time ago.
thanks

L