Thread Closed 
Reading one or two arguments
03-15-2021, 05:06 AM
Post: #8
RE: Reading one or two arguments
Hi Essen,

thanks for this further and elaborate reply.
Yes, I am aware how to use an IF ... THEN ... ELSE ... clause after some 37 years of programming in more than a dozen languages, that is not the point (if memory serves me well I had my first computer, a ZX-Spectrum, back in 1984 and never stopped programming after that).

You wrote:
(03-14-2021 10:08 PM)essen Wrote:  You don't need to return to the stack if a complex, Reading Ans(N) from
the stack does not remove it from the stack.

Yes, I have noticed that Ans(N) keeps the item on the stack, which I find quite useful as it remains there for further calculations. I do, however, need the results from the calculations to return to the stack as I need them there for further work. But what I meant was that when using INPUT() I cannot get data from the stack, unless I know where it is beforehand, but then I do not need INPUT() as Ans(N) solves my case. Even if I could get items from the stack using INPUT(), I think the whole method of using an input field is way too cumbersome compared to what was possible with the 48GX. I could also populate a list with the stack items using Ans(N) and then use Choose() to get an item, but again this is way too cumbersome for what I need and still does not return multiple items in a useful way to the stack.

Anyway, I have got my program working well enough to assist me in my daily calculations, albeit with the cumbersome string-output to stack.

So thanks for your help, which is much appreciated!

Nicolàs
Find all posts by this user
Thread Closed 


Messages In This Thread
Reading one or two arguments - HillyBoy - 03-13-2021, 04:18 PM
RE: Reading one or two arguments - essen - 03-13-2021, 08:40 PM
RE: Reading one or two arguments - Han - 03-14-2021, 05:20 AM
RE: Reading one or two arguments - essen - 03-14-2021, 11:54 AM
RE: Reading one or two arguments - essen - 03-14-2021, 10:08 PM
RE: Reading one or two arguments - HillyBoy - 03-15-2021 05:06 AM
RE: Reading one or two arguments - essen - 03-15-2021, 12:27 PM
RE: Reading one or two arguments - essen - 03-16-2021, 09:00 PM
RE: Reading one or two arguments - Gene - 03-17-2021, 08:55 PM



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