REPEAT INPUT UNTIL...
|
03-20-2015, 11:30 AM
Post: #1
|
|||
|
|||
REPEAT INPUT UNTIL...
In my program I've this code:
Code:
It works but non as I would like... If there is an error, MSGBOX is showed after the whole input routine, then restart the input and this reset all variables... There is a way to present every msgbox contextually to the error catching and then not to reset the variables without errors? Thank you in advance Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
03-20-2015, 12:06 PM
(This post was last modified: 03-20-2015 12:12 PM by Didier Lachieze.)
Post: #2
|
|||
|
|||
RE: REPEAT INPUT UNTIL...
(03-20-2015 11:30 AM)salvomic Wrote: There is a way to present every msgbox contextually to the error catching and then not to reset the variables without errors?You can set the input variables default values outside of the REPEAT ... UNTIL loop and reset only the ones that have the wrong values in the IF THEN statements: Code: control:=1; This doesn't help to show the error message contextually when the value in entered but it avoids resetting all values to the default. |
|||
03-20-2015, 12:18 PM
Post: #3
|
|||
|
|||
RE: REPEAT INPUT UNTIL...
(03-20-2015 12:06 PM)Didier Lachieze Wrote: This doesn't help to show the error message contextually when the value in entered but it avoids resetting all values to the default. thanks a lot, Didier! So it works better, also if the errors are not contextual... my version, after your... Code:
∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)