
REFERENCE FOR MSGBOX.DLL
DISCLAIMER:
This CDF is provided for illustration purposes only of the uses for a Custom Defined Function within DataEase for Windows. This
CDF is provided 'As is' with no warranty whatsoever, either expressed or implied. DataEase International, Inc. does not
warrant the CDF to be error free, nor does it warrant the CDF to meet your specific requirements. In addition, this CDF is not
approved for use, nor is it subject to Technical Support by DataEase International, Inc.
FUNCTION:
MESSAGE ( Message Text , Caption Text , Icon , Buttons , Beep )
PURPOSE:
Displays a custom Windows message box allowing the application developer to specify a custom message, message box title, a message
icon, various button combinations for dispatching the dialog and an audible beep. This function can be used alone or in conjunction with
other DataEase for Windows functions. The function returns an integer value corresponding to the Users response in dispatching the dialog.
PASSING ARGUMENTS:
1. Message Text: a text message the application developer wishes to display.
2. Caption Text: a 50 character string used as the title for the message dialog.
3. Icon: an integer value that specifies what type of icon to display in
the message box.
1 Information Icon ( i )
2 Exclamation Icon ( ! )
3 Stop ( Stop sign )
4 Question ( ? )
5 No icon
4. Buttons:
an integer value that specifies what combination of buttons to
be displayed in the message dialog for the user to use in
dispatching the dialog and sending return values back to the
function.
0 (default) OK
1 OK CANCEL
2 RETRY CANCEL
3 ABORT RETRY CANCEL
4 YES NO
5 YES NO CANCEL
5. Beep:
an integer values that specifies what type of audible beep to
generate according to a given system alert level. The sound for
each alert level is determined by an entry in the [sounds]
section of WIN.INI.
0 or 1 (default) no sound
2 System sound
3 Information sound
4 Exclamation sound
5 Stop sound
6 Question sound
7 OK sound
RETURN VALUES:
Each message dialog you display will include at least one push button
for the user to dispatch the dialog. When a button is pressed, the
Message function returns an integer value indicating that it received
a user response and DataEase will continue processing. The following
return values correspond to the available buttons for display:
1 ABORT
2 CANCEL
3 IGNORE
4 NO
5 OK
6 RETRY
7 YES
0 Out of Memory
TIP:
Since the function returns an integer value, it may be awkward when
using Message in field derivations. The following example
illustrates one way to use Message:
SCENARIO:
We have a form with a date field called DEPARTURE DATE, and we
want to display a message when the user enters a date that is
prior to today's date (e.g. it's difficult to leave when you
already have). However, if the user enters a date after Today's
date, we want to display a message that indicates on what day of
the week that date occurs.
Field: DEPARTURE DATE
Derivation Formula:
if ( DEPARTURE DATE < current date ,
if ( Message
( jointext ( "The date you entered: " ,
jointext ( DEPARTURE DATE , " is invalid. \n\t
Do you want today's date?" )
) ,
"Invalid Date Message" , 4, 4, 6 ) = 7 ,
if ( Message
( jointext ( "Your entry date will be replaced with
today's date: " , current date ) ,
"Enter Current Date", 1, 0, 3 ) = 5, current date ,
current date ) ,
if ( Message
("Your entry will be discarded and the field will be
left blank." ,
"Discard Entry Date" , 2, 6, 4 ) = 5 , blank, blank )
) ,
if ( Message
( jointext ( "The date you entered: " ,
jointext ( DEPARTURE DATE,
jointext ( " is a " ,
spellweekday ( weekday ( DEPARTURE DATE ) ) ) ) )
"Day of the Week", 4, 4, 6 ) = 5 ,
DEPARTURE DATE , DEPARTURE DATE ))
NOTE: the symbols /n/t on line 4 tell Windows to display a
<newline> and <tab>.
FUNCTION:
BEEP ( Beep )
PURPOSE:
Generates an audible sound from the PC's speaker.
PASSING ARGUMENTS:
1. Beep:
an integer values that specifies what type of audible beep to
generate according to a given system alert level. The sound for
each alert level is determined by an entry in the [sounds]
section of WIN.INI.
0 or 1 (default) no sound
2 System sound
3 Information sound
4 Exclamation sound
5 Stop sound
6 Question sound
7 OK sound
RETURN VALUE:
The return value means nothing and can be discarded or ignored.
INSTALLATION OF MSGBOX.DLL AS A DataEase for Windows CDF:
Open the application within which you wish to integrate the function.
From the Menu Bar, select APPLICATION - CUSTOM FUNCTIONS. Fill in the
form as shown below and press F2 for each function (both functions are
contained in the same DLL).
Function Name: MESSAGE
OS Type: WINDOWS
Description: DISPLAYS CUSTOM MESSAGE BOX
CDF Library Name: MSGBOX.DLL
Return Type: INT
DOS Mem Req't:
DOS Entry Point:
Parm 1 Name: TEXT MESSAGE
Parm 1 Type: STRING
Parm 2 Name: CAPTION TITLE
Parm 2 Type: STRING
Parm 3 Name: ICON DISPLAY
Parm 3 Type: INT
Parm 4 Name: BUTTON SELECTION
Parm 4 Type: INT
Parm 5 Name: BEEP SOUND
Parm 5 Type: INT
Parm 6 Name:
Parm 6 Type:
Parm 7 Name:
Parm 7 Type:
Parm 8 Name:
Parm 8 Type:
Parm 9 Name:
Parm 9 Type:
Parm 10 Name:
Parm 10 Type:
Function Name: BEEP
OS Type: WINDOWS
Description: MAKES AN AUDIBLE BEEP
CDF Library Name: MSGBOX.DLL
Return Type: INT
DOS Mem Req't:
DOS Entry Point:
Parm 1 Name: BEEP SELECTION
Parm 1 Type: INT
Parm 2 Name:
Parm 2 Type:
Parm 3 Name:
Parm 3 Type:
Parm 4 Name:
Parm 4 Type:
Parm 5 Name:
Parm 5 Type:
Parm 6 Name:
Parm 6 Type:
Parm 7 Name:
Parm 7 Type:
Parm 8 Name:
Parm 8 Type:
Parm 9 Name:
Parm 9 Type:
Parm 10 Name:
Parm 10 Type:
Product: Dataease [{8}]FIVE. Written by dtagcayman@yahoo.com 30/08/14 at 08:05:55
Product: Dataease [{8}]FIVE. Written by Josef Vella 31/08/14 at 15:30:29
Product: Dataease [{8}]FIVE. Written by dtagcayman@yahoo.com 01/09/14 at 03:56:36
Product: DataEase for Windows 7.x. Written by diego fernando Ocampo 09/09/14 at 16:04:21
Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 01/10/14 at 11:19:35
Product: Dataease [{8}]FIVE. Written by DataEase Tech Sup. 01/10/14 at 11:32:10
Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 01/10/14 at 14:27:59
Product: Dataease [{8}]FIVE. Written by DataEase 01/10/14 at 15:15:04
Product: Dataease [{8}]FIVE. Written by Marco Marchesi 01/12/14 at 09:10:22
Product: Dataease [{8}]FIVE. Written by DataEase Development 01/12/14 at 18:31:59
Product: Dataease [{8}]FIVE. Written by Marco Marchesi 02/12/14 at 07:15:07
Product: Dataease [{8}]FIVE. Written by DataEase 02/12/14 at 08:31:21
Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 30/01/15 at 16:15:02
Product: Dataease [{8}]FIVE. Written by DataEase 30/01/15 at 16:40:43
Product: Dataease [{8}]FIVE. Written by Francesco Toma 14/02/15 at 16:34:38
Product: Dataease [{8}]FIVE. Written by DataEase 15/02/15 at 12:59:05
Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 16/02/15 at 01:19:28
Product: Dataease [{8}]FIVE. Written by DataEase 16/02/15 at 09:34:04
Product: Dataease [{8}]FIVE. Written by Wim 19/02/15 at 09:03:19
Product: Dataease [{8}]FIVE. Written by DataEase 19/02/15 at 09:06:21
Product: Dataease [{8}]FIVE. Written by Wim von der Becke 23/02/15 at 11:06:42
Product: Dataease [{8}]FIVE. Written by DataEase 23/02/15 at 11:18:40
Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 02/06/15 at 15:18:46
Product: Dataease [{8}]FIVE. Written by DataEase 03/06/15 at 08:06:29
Product: Dataease [{8}]FIVE. Written by Fatma Adel 05/11/15 at 17:30:42
Product: Dataease [{8}]FIVE. Written by DataEase 05/11/15 at 17:32:38
Product: Dataease [{8}]FIVE. Written by Kevin O'Donnell 15/06/16 at 13:06:42
Product: Dataease [{8}]FIVE. Written by peadar Kearney 26/02/19 at 13:57:27
Product: Dataease [{8}]FIVE. Written by DataEase 27/02/19 at 09:42:38
Product: Dataease [{8}]FIVE. Written by peadar Kearney 27/02/19 at 23:19:40
Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 08/03/19 at 17:22:44
Product: Dataease [{8}]FIVE. Written by DataEase 12/03/19 at 15:09:48
Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 14/03/19 at 12:09:50
Product: Dataease [{8}]FIVE. Written by Colleen Sienkiewicz 20/01/20 at 21:51:47
Product: Dataease [{8}]FIVE. Written by DataEase 21/01/20 at 11:45:37
Product: Dataease [{8}]FIVE. Written by DataEase 21/01/20 at 16:16:30
Product: Dataease [{8}]FIVE. Written by Colleen Sienkiewicz 21/01/20 at 17:00:00
Product: Dataease [{8}]FIVE. Written by DataEase 22/01/20 at 10:45:34
Product: Dataease [{8}]FIVE. Written by Colleen Sienkiewicz 07/09/21 at 13:43:01
Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 08/09/21 at 17:34:31
Product: Dataease [{8}]FIVE. Written by afonso santos 12/12/21 at 11:23:50
Product: Dataease [{8}]FIVE. Written by afonso santos 12/12/21 at 11:34:38
Product: Dataease [{8}]FIVE. Written by Paul Cheeseman 15/12/21 at 13:15:31
Product: Dataease [{8}]FIVE. Written by Paul Cheeseman 15/12/21 at 13:23:45
Product: Dataease [{8}]FIVE. Written by Bonnie Clarke 18/02/22 at 16:07:10
Product: LegEasy 6 Windows. Written by Handles 17/03/22 at 11:24:09
Product: LegEasy 6 Windows. Written by Handles 17/03/22 at 13:51:59
Product: LegEasy 6 Windows. Written by Handles 25/03/22 at 20:18:15
Product: Dataease [{8}]FIVE. Written by DataEase 24/05/13 at 17:28:25
Product: Dataease [{8}]FIVE. Written by DataEase 08/08/16 at 11:36:42