FILE DIALOG SHOW: 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=FILE_DIALOG_SHOW <state>, <filename>
{{Command|syntax=FILE_DIALOG_SHOW <state>, <filename>
|description=*DESCRPTION*
|description=Display a file dialog to ask for the name of a file to be opened or saved.<br>
Use with [[FILE_DIALOG_NEW]] and [[FILE_DIALOG_EXTENSION]] to define the file dialog.


|param1=<state>|param1_desc={{state}}
|param1=<state>|param1_desc=OPEN or SAVE. To open an existing file (OPEN), or create a new file (SAVE).
|param2=<filename>|param2_desc={{filename}}
|param2=<filename>|param2_desc=Text variable to be set to the name of the selected file.
}}
}}


===Example===
===Example===
:FILE_DIALOG_SHOW
:FILE_DIALOG_SHOW OPEN f$
:For an example macro see [[Get_Op_Tool_Path]] [[Print_Geo_Data_To_File]] [[Run_Post]]
:For an example macro see [[Get_Op_Tool_Path]] [[Print_Geo_Data_To_File]] [[Run_Post]]
[[Category:Miscellaneous]]
[[Category:Miscellaneous]]

Revision as of 21:37, 13 August 2010

Up

Command

FILE_DIALOG_SHOW <state>, <filename>


Display a file dialog to ask for the name of a file to be opened or saved.
Use with FILE_DIALOG_NEW and FILE_DIALOG_EXTENSION to define the file dialog.

Parameters

<state>
OPEN or SAVE. To open an existing file (OPEN), or create a new file (SAVE).
<filename>
Text variable to be set to the name of the selected file.

Example

FILE_DIALOG_SHOW OPEN f$
For an example macro see Get_Op_Tool_Path Print_Geo_Data_To_File Run_Post