InfoPopup Method
The InfoPopup method displays a pop-up message box in the center of the window with the specified text as the message.
This method has the following syntax:
CurFrame.InfoPopup(messagetext = nvarchar(2000)
[, messagetype = integer])
or
CurProcedure.InfoPopup(messagetext = nvarchar(2000)
[, messagetype = integer])
This information-style dialog has a single OK button and blocks the executing frame or procedure until the end user cancels the display.
You must use CurFrame or CurProcedure to call the InfoPopup method.
This method has the following parameters:
messagetext
Contains the text of the pop-up message
messagetype
Displays one of the following standard icons in the message box:
MT_NONE
Specifies no icon
MT_INFO
Specifies the information icon
MT_WARNING
Specifies the warning icon
MT_ERROR
Specifies the error icon
Default: MT_INFO
To the end user, the behavior of an InfoPopup method call, which specifies a message type of MT_INFO is the same as the behavior of the 4GL message statement.
The following example illustrates how to display a simple error message for user acknowledgment:
on setvalue name =
begin
if name = '' then
CurFrame.InfoPopup(
messagetext = 'You must enter the
name.',
messagetype = MT_WARNING);
resume;
endif;
end
The font used to display the text in the dialog is the default font as determined by your Windows system.
Last modified date: 12/20/2023