home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
vrac
/
paolin.zip
/
GENERIC
/
GENERIC4.SC
< prev
next >
Wrap
Text File
|
1993-05-18
|
1KB
|
38 lines
; ****************************************************************************
; TITLE: GENERIC4.sc
; SESSION: KELTON/PAOLINI - Generic Utility Procedures in Paradox 4
; COPYRIGHT: (c) 1993 - David Kelton/Dan Paolini - DataStar International
; DESCRIPTION: Example of generic Message routine with optional pause
; ****************************************************************************
PROC MsgPause.u(message.a,pause.l)
Message message.a
IF pause.l THEN
WHILE true
GetEvent ALL To y
IF (y["Type"] = "MOUSE" AND y["Action"] = "DOWN") OR
y["Type"] = "KEY" THEN
QUITLOOP
ENDIF
Beep Sleep 50 Beep Sleep 500
ENDWHILE
ELSE
Beep Sleep 50 Beep Sleep 3000
ENDIF
Return
ENDPROC
Create "Answer" "Test" : "S"
;quExecute.l() ; perform query
retval = true ; query executed ok
IF retval THEN
IF IsEmpty("Answer") THEN
MsgPause.u("There were no records that matched your selection " +
"criteria. Click the mouse or press any key to return " +
"to the menu.",true)
ELSE
; ...
ENDIF
ENDIF
MsgPause.u("This Message will go away by itself",false)