i think B=BUTTON() has to be inside your loop. If that does not work i'll get my code ;)