Posts: 1,586
Threads: 59
Joined: Jul 2022
Reputation:
52
11-06-2022, 02:46 PM
(This post was last modified: 11-06-2022, 02:48 PM by mnrvovrfc.
Edit Reason: Forgot the syntax with file descriptor
)
"INPUT$(1)" maybe it's real useful.
"INPUT$(n)" where n > 1, well, watch out.
And "INPUT$(n, filenum)", I'm not even going to comment on.
That's why this is one of the statements I intensely dislike and never used. Sorry, it sucks. There have been many attempts to ditch "INKEY$" and it cannot even be used in a "serious" game project. Imagine having to use "INPUT$()" for any extensive project? Is it even employed in the BASIC portion of the QB64 source code? Probably for the "Press any key to continue" prompt LOL.
Posts: 383
Threads: 56
Joined: Apr 2022
Reputation:
13
It seems it's best use is in communications coding.
Posts: 2,171
Threads: 222
Joined: Apr 2022
Reputation:
103
I can't imagine all the small code snippets examples I've posted, which I'd have to have added my custom keyboard routine to if INPUT$() did not exist. I mean folks it's great to post example code here that is small and self contained rather than snippets that are library reliant, INCLUDE file reliant, or littered with support SUBs and FUNCTIONs just so they can be demonstrated.
There are also the practical reasons Steve mentioned. The to improve the functionality of INPUT$() over the years should also be very appreciated. It is not nearly as limited as your gran pappy's INPUT$().
Pete
I'm not really old. I'm really, really old!