YESNO: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
MikeO (talk | contribs)
No edit summary
Line 2: Line 2:


{{Command|syntax=YESNO <prompt> <variable>
{{Command|syntax=YESNO <prompt> <variable>
|description=:Create a yes / no display box with a message.
|description=:Create a Yes/No dialog box.


|param1=<prompt>|param1_desc=Text or a string variable.
|param1=<prompt>|param1_desc=Text for the prompt on the dialog.
|param2=<variable>|param2_desc=Set a variable for later use in the macro, value is 1 for "yes", 0 for "no".
|param2=<variable>|param2_desc=Variable to set to the response. 1 for "yes", 0 for "no".
}}
}}



Revision as of 20:38, 18 August 2010

Up

Command

YESNO <prompt> <variable>


Create a Yes/No dialog box.

Parameters

<prompt>
Text for the prompt on the dialog.
<variable>
Variable to set to the response. 1 for "yes", 0 for "no".

Example

YESNO r$, YN1
For an example macro see Backup_Current_Part