HP Forums

Full Version: possible problem INPUT dialog box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

within the INPUT dialog box, if you press any menu, [ESC], [OK], [EDIT] is blocked, also the input must be greater than 100

has been tested only in the emulator


PHP Code:
EXPORT p11_repeat_block()
BEGIN
  local age 
:= 0
  print(
"Enter a valid AGE [1, ...100]"); wait;
  
repeat 
    input
(age); wait;
    
until NOT((age 1) or (age 100));
  print(
age); wait;
  return 
"Done";
END
Hello,

The issue here are your wait. They cause the calculator to pause, waiting for a key press. During this time, the calculator will not respond to anything else.

I suggest modifying your program to write the "Enter an age between 0 and 100" as the title of your input box and to remove all wait commands.

Cyrille
Wait isn't necesary

PHP Code:
EXPORT p11_repeat_block()
BEGIN
  local age 
:= 0
  print(
"Enter a valid AGE [1, ...100]"); wait;
  
repeat 
    input
(age);
  
until NOT((age 1) or (age 100));
  print(
age);
  return 
"Done";
END
Reference URL's