Show a message box

This action lets you display a message box (or prompt message). This message box can show a standard message (it returns no value) or a question (the message box returns a value). Paquet Builder uses this feature to display its default prompt messages.

Before you continue, please read how Paquet Builder determines whether the message box will be a standard text or a question: it actually depends on the VariableReturn property. If you leave this property blank, then Paquet Builder will show a standard text (even if you set the Buttons property to pbOkCancel). Otherwise, the message box will be defined as a question and its return value will be stored in the variable specified by VariableReturn.

Property NameData TypeDescription
CaptionStringThe title that appears on the message box. For example: Confirmation
MessageBtnpbButtonsDefines the button(s) that will appear. There is a defined set of buttons from which you can choose in the list box.
MessageTypepsIconsDefines the icon that will appear on the message box. There is a defined set of icons from which you can choose in the list box.
TextRichLinesThe text that will appear on the message box, as “This will install MyApp./$Do you want to continue?”. Tip: to put a carriage-return-line-feed between “Line 1” and “Line 2”, use /$, like “Line1/$Line2”.
VariableReturnVarNameOptional: if the prompt is a question, enter the variable where the return value will be stored. Like %MYANSWER%. See below about possible return values.

If the VariableReturn is not blank, then the variable specified by this property will receive the result of the end user’s choice when the latter select one of the buttons (OK, Cancel, Yes or No). If the value is positive (Yes, OK), then the variable will receive the value 1 (true). Otherwise, if the value is negative (No, Cancel), then it will contain 0 (false).

All available actions

© G.D.G. Software 2018. All rights reserved.