Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No INPUT?
#3
ref Wrote:So, what is the equivalent of sinclair basic "INPUT" command? I just need to ask an user to type a name or number, do I need to program whole input funciton with inkey(undocumented) and print, or there is an easy way to do it?
Input can't be implemented (easily) in compiled programs. But there is an INPUT function which works much like FreeBASIC input.

You need to use #include <input.bas>:
Code:
#include <input.bas>
A$ = Input(20) : REM Read 20 chars (waits for enter)
PRINT "You wrote "; A$
Input(n) won't let the user to type more than N chars.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)