Page 1 of 1

Console INPUT() request

Posted: Mon Apr 19, 2010 9:52 pm
by Rook Zimbabwe
I have not played with 4.5 but I want to make this request before it is finalized...

Can we change the Console Input() command so that it can display textt as well and have the answer cursor at the end of the line?
as it is now:

PrintN("You wish to quit (Y/N)")
answer$ = Input()

More like

answer$ = Input("You wish to QUIT (Y/N)")

:mrgreen:

Re: Console INPUT() request

Posted: Mon Apr 19, 2010 10:28 pm
by Kaeru Gaman
just don't use PrintN.

Code: Select all

answer$ = Input("You wish to QUIT (Y/N)")
==>

Code: Select all

Print("You wish to QUIT (Y/N)")
answer$ = Input()
here, especially for you:

Code: Select all

Procedure.s InputO ( Text$ )
  Protected answer$
  Print( Text$ )
  answer$ = Input()
  ProcedureReturn answer$
EndProcedure

Macro Input( _PARAMETER_ )
  InputO( _PARAMETER_ )
EndMacro