HP Forums

Full Version: Comportement étrange
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sur la calculatrice physique, entrez ce code:
Physics calculator, enter this code :
Code:

EXPORT TEST()
BEGIN
WAIT(1);
WHILE GETKEY<0  DO
END;
END;
Lancez ce programme puis appuyez sur une touche
il s'arrête, normal.
Maintenant relancez le programme puis pointez avec vôtre
doigt sur l'écran en différents endroits 3 fois minimum
appuyez maintenant sur une touche, le programme ne s'arrête plus
sauf avec la touche 'On'.

Run this program and press any key
he stops, normal .
Now run the program again and then point with yours
finger on the screen in different locations 3 times minimum
Now press a key , the program will not stop
except with the button 'On' .[/code]
I confirm this issue.
I think the problem is related to the command GETKEY that stop functioning properly when the screen is touched three times.
Program stays in the loop until you press the ON key. Other keys just doesn't work.

I checked also the version using REPEAT UNTIL loop (without WAIT) and this issue is also present.

Code:
EXPORT TEST()
BEGIN
LOCAL a;
REPEAT
PRINT();
a:=a+1;
PRINT(a);
UNTIL GETKEY>=0;
END;
I'll put it on the list...

Seems quite strange.
Reference URL's