home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
disk_20.zip
/
DB3-GKEY.ZIP
/
TESTTIME.PRG
< prev
next >
Wrap
Text File
|
1986-07-05
|
1KB
|
54 lines
** Last revision: July 5, 1986 at 9:54
*
* by: H.M. Van Tassell
*
* A program to test the T_GetKey procedure contained in the
* procedure file TIMEPROC.PRG for use under dBASEIII Plus or
* Clipper Winter '85
*
SET TALK OFF
** NOTE: If you dont have CursOn/CursOff binary files you must
** comment out the next two load instructions, if Clippering, you
** either have the CursOn/Off as in the file CURSOR.OBJ, for linking
** or comment out the CALLS in T_GetKey. All the cursor stuff is
** included in the dB-INKEY.ARC
*
PUBLIC clipper
*
IF .NOT. Clipper
LOAD cursoff && Clipper will flag as errors but not to worry
LOAD curson && or you may comment out to avoid error msg.
ENDIF
*
SET PROCEDURE TO timeproc
*
* set time colors to reverse/normal for mono display
RevVideo = "N/W"
StdVideo = "W/N"
*
* set row and colm where time will be printed
trow = 1
tcol = 70
DO WHILE .T.
CLEAR
*
@ 10,10 SAY "Enter X, Y, or Z; an X will eXit program: "
choice = ""
DO T_GetKey WITH choice, "XYZ" && xyz=values, can also be "*" wildcard
?
? "Hey - can't fool me, you just entered a " + choice
IF choice = "X"
EXIT
ENDIF
?
WAIT
ENDDO
?
? "Wasn't that was so very nice?"
?