home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
prog
/
ks94an.arj
/
ACK.HDR
< prev
next >
Wrap
Text File
|
1994-04-24
|
2KB
|
62 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Ack( cAckMsg, cAckColor, nBoxType ) --> cAckMsg
PARAMETERS:
cStatement : Acknowledge statement
SHORT:
Present a boxed message and wait for user acknowledgement.
DESCRIPTION:
_Ack() presents a message on the screen and prompts for an
acknowledgement from the user via either ENTER or ESC.
Unlike _Msg(), _Ack() pauses program execution until the proper key
is pressed. That key can be tested with "lastkey()"
Note that when nBoxType = BOXNONE (no border) the Box Message ("Message
- Press Enter") does not appear either. In all cases, the _KeyList()
line always contains instructions in the color of the _Ack() box.
_Ack() returns whatever string was passed to it. This lets you "stack" one
or more commands at once without having to specify the string again.
Example: Instead of two strings:
_Ack('Big Time Error: Something Died')
_Terminate('Big Time Error: Something Died')
Try: One String Declaration, used twice:
_Terminate(_Ack('Big Time Error: Something Died'))
In this case, _Ack() returns to _Terminate() what it was given. _Terminate()
then receives the same message, but the string is only defined once.
NOTE:
See _Box() for a list of valid box border types.
EXAMPLE:
_Ack('Something Horrible Happened!!')
Result: The message is presented in a red box, and program execution
stops until either ESC or ENTER is pressed.
******************************************************************************/