Jump to content
IGNORED

Question about TI/99/4a Texas nstruments computer


WildManChris

Recommended Posts

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 .

Link to comment
Share on other sites

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.

 

 

 

 

  • Like 1
Link to comment
Share on other sites

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?

  • Like 2
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

 

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...