YESNO: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{Command|syntax=YESNO <prompt> <variable> | {{Command|syntax=YESNO <prompt> <variable> | ||
|description=:Create a | |description=:Create a Yes/No dialog box. | ||
|param1=<prompt>|param1_desc=Text | |param1=<prompt>|param1_desc=Text for the prompt on the dialog. | ||
|param2=<variable>|param2_desc= | |param2=<variable>|param2_desc=Variable to set to the response. 1 for "yes", 0 for "no". | ||
}} | }} | ||
===Example=== | ===Example=== | ||
:YESNO | :YESNO r$, YN1 | ||
:YESNO "Do You Want To continue ?", YN2 | |||
:For an example macro see [[Backup_Current_Part]] | :For an example macro see [[Backup_Current_Part]] and [[Calc_Geo_Extents]] | ||
[[Category:Miscellaneous]] | [[Category:Miscellaneous]] |
Latest revision as of 23:43, 20 August 2010
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
- YESNO "Do You Want To continue ?", YN2
- For an example macro see Backup_Current_Part and Calc_Geo_Extents