Post Reply 
Improvement for the INPUT command
02-27-2017, 06:33 AM
Post: #6
RE: Improvement for the INPUT command
(02-27-2017 04:47 AM)compsystems Wrote:  For the case of a single data, if the entered data is correct, if there is an extra step, but if the entered data is incorrect, how do you re-edit it?

In user-RPL works for a single field, same as my suggestion

PHP Code:
"title"
{
"x" "help" }
}
1
98 }
99 }
INFORM
IF
THEN
 
'x' STO
END

"title"
{
"y" "help" }{ "z" "help" }
}
1
87 76 }
88 77 }
INFORM
IF
THEN
 
'y' 'z' STO
END 

Why would you expect to be able to re-edit the input? You had the chance to check your input while filling out the input field. Your program should behave just like any other command that has been given the wrong input -- return an error message. If you want continually allow the user many attempts to enter a valid input, then you would need a loop that also checks to see if the input is valid -- and this would be the case whether your input command uses a single variable or many variables.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Improvement for the INPUT command - Han - 02-27-2017 06:33 AM



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