Post Reply 
possible problem INPUT dialog box
01-18-2016, 10:58 PM (This post was last modified: 01-18-2016 11:24 PM by compsystems.)
Post: #1
possible problem INPUT dialog box
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
Find all posts by this user
Quote this message in a reply
01-19-2016, 06:01 AM
Post: #2
RE: possible problem INPUT dialog box
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

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
01-19-2016, 08:43 AM (This post was last modified: 01-19-2016 08:48 AM by Carlos295pz.)
Post: #3
RE: possible problem INPUT dialog box
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

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)