Hello Tim
On Saturday, 23 November 1996 08:34:14, you wrote to All:
TH> I have a simple numerical data type in a SUB. I set it to,
TH> say, '5' and simply attempt to PRINT it. I get a run-time overflow
TH> at the print command!
TH> Of course it doesn't do this consistently. just *below* the
TH> PRINT command I have a FOR/NEXT with STEP -1. If I change the STEP
TH> to '1' I get no error. I tried a DO/LOOP increment, no error;
TH> decrement, error.
This sounds rather consistent to me. But... could you be more
specific? I couldn't produce the error. What numeric data type did
you use? What is the data type of the for loop counter? Maybe you
could give a clear example in which you get the run-time overflow.
TH> These loops are beyond the PRINT statement, and should have
TH> absolutely *nothing* to do with the command. But it does...
TH> Why?!?
Maybe PB got a wrong number of the line in which the error appeared.
TH> How can an overflow error occur on a PRINT statement anyway,
TH> expecially with the such a low number? If I print the var as
TH> HEX$(var) then it works, but 'var' by itself I get the error.
TH> Why???
That's strange indeed. I don't know an answer.
Friendly greeting you,
Hans Lunsing, Fido : 2:281/607.214, 2:282/610.12
Internet : jlunsing@doge.nl
--- Terminate 4.00/Pro
# Origin: BBS De Lauwers For BASIC Programmers! ++31594688407 (2:282/610.12)
---------------
* Origin: United Bbs Systems Europe MailGate to -> Fido USA (2:2802/337.0)
|