home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
DFQBX10.ZIP
/
EXINPUT.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-10-21
|
685b
|
26 lines
'Program to demonstrate using IN.PUT as an INKEY$ function
'Command line to load in the environment: QBX EXINPUT /L DFRAMEX
' $INCLUDE: '\INC\DFRAMEX.INC'
PROGNAME$ = "Input Example"
VERSION$ = " v1.0"
EXENAME$ = "EXINPUT"
INITIALIZE
CLOSE #1
' We'll assume there is some code above this, so now we want an answer.
DIS.PLAY "Your answer? > ", LGREEN, BLACK, 0, 0, 10, 3, 0, 0, 0
' Get a 5 character maximum response, blue on white, and allow 60 seconds
' to answer.
IN.PUT 5, 60, LBLUE, WHITE
' Now we'll DIS.PLAY the answer. This will be "-1" if a timeout occurred.
DIS.PLAY RESPONSE$, LRED, BLACK, 0, 0, 15, 10, 1, 0, 0
ENTER
CLRSCRN
EXIT.DOOR "Y"
END