WildManChris Posted April 18, 2023 Share Posted April 18, 2023 This is in regards to TI Basic HOME COMPUTER - not extended basic. I was always intrigued with the error messages and made everyone of them... EXCEPT... It is easy to get this one: *WARNING: INPUT ERROR IN 50 TRY AGAIN: I cannot, for the life of me, find out how to get an "* INPUT ERROR" WITHOUT the warning. HOW DO YOU make the error message: * INPUT ERROR IN 50 Is there an error message like this: * WARNING: INPUT ERROR IN 50 (WITHOUT the TRY AGAIN) Is there such an error as: * NUMBER TOO BIG Without the warning? Please email me the answer, thx. If possible, can you send me screenshots of this . Quote Link to comment Share on other sites More sharing options...
RXB Posted April 18, 2023 Share Posted April 18, 2023 Having been a GPL programmer for 30 years for RXB and having created my own EA cart and TI Basic Assembly support routines package along with other GPL projects like the GPLHOW2 tutorials on AtariAge, I think I am qualified to answer your questions. First off INPUT command is designed to take any negative or positive numbers, you can get what you want but you have to exceed the max input of a negative value or positive value above: -9.9999999999999E127 up to 9.9999999999999E127 There is no other check for range which is why you have the IF expression THEN line-number command in TI Basic. Now XB does have limits you can use in ACCEPT or ACCEPT AT(row,column) but TI Basic does not have this command. Also in XB unlike TI Basic you have ONERROR and ONWARNING which seems to be what you seem to want here. 1 Quote Link to comment Share on other sites More sharing options...
+FarmerPotato Posted April 18, 2023 Share Posted April 18, 2023 Maybe it happens with files? 10 OPEN #1:"CS1",OUTPUT 20 PRINT #1:"Hi" 30 CLOSE #1 40 OPEN #1:"CS1",INPUT 50 INPUT #1:A,B 60 CLOSE #1 1 Quote Link to comment Share on other sites More sharing options...
jrhodes Posted April 18, 2023 Share Posted April 18, 2023 18 hours ago, WildManChris said: This is in regards to TI Basic HOME COMPUTER - not extended basic. I was always intrigued with the error messages and made everyone of them... EXCEPT... It is easy to get this one: *WARNING: INPUT ERROR IN 50 TRY AGAIN: I cannot, for the life of me, find out how to get an "* INPUT ERROR" WITHOUT the warning. HOW DO YOU make the error message: * INPUT ERROR IN 50 Is there an error message like this: * WARNING: INPUT ERROR IN 50 (WITHOUT the TRY AGAIN) Is there such an error as: * NUMBER TOO BIG Without the warning? Please email me the answer, thx. If possible, can you send me screenshots of this . I'm curious why you want to produce these errors? 2 Quote Link to comment Share on other sites More sharing options...
RXB Posted April 19, 2023 Share Posted April 19, 2023 4 minutes ago, jrhodes said: I'm curious why you want to produce these errors? I do not think he wants this for files as he asked for * WARNING: INPUT ERROR IN 50 Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted April 19, 2023 Share Posted April 19, 2023 20 hours ago, WildManChris said: I was always intrigued with the error messages and made everyone of them... ...So, you should already be familiar with this... TI-99/4A User's Reference Guide(link)(PDF) 1 Quote Link to comment Share on other sites More sharing options...
senior_falcon Posted April 19, 2023 Share Posted April 19, 2023 3 hours ago, jrhodes said: I'm curious why you want to produce these errors? That is a good question. Is just academic interest? i.e. is it possible to issue the error message *INPUT ERROR IN 50 without the TRY AGAIN? Or is this something that you actually want to use in a program? The following program gets you half way there. If the string you enter cannot be converted to a number, the program stops with BAD ARGUMENT IN 20. If you enter 2E200, which is higher than the TI can handle, it does not ask you to TRY AGAIN. But it prints the bogus value and the program does not stop. 10 INPUT N$ 20 N=VAL(N$) 30 PRINT N 40 GOTO 10 Quote Link to comment Share on other sites More sharing options...
RXB Posted April 19, 2023 Share Posted April 19, 2023 Tried it and this is the result of 2E200 10 INPUT N$20 N=VAL(N$)30 PRINT N40 GOTO 10 RUN ? 2E200 * WARNING: NUMBER TO BIG IN 20 9.99999E+** Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted April 19, 2023 Share Posted April 19, 2023 ...I give up. Quote Link to comment Share on other sites More sharing options...
Tursi Posted April 19, 2023 Share Posted April 19, 2023 I'm not exactly sure of the desire, but you'd probably need to adapt Senior_Falcon's suggestion. Input a string, and then parse the string yourself rather than using the built-ins. It won't be fast, but you can bypass the error. 1 Quote Link to comment Share on other sites More sharing options...
RXB Posted April 19, 2023 Share Posted April 19, 2023 Or just write your own error routine in the result of the IF value-checked THEN line-number Quote Link to comment Share on other sites More sharing options...
Casey Posted April 19, 2023 Share Posted April 19, 2023 Here's an example program that produces INPUT ERROR without the warning: 1 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.