
Function: save_file_dialogue
The save_file_dialogue
function opens a file dialog for the user to select a new or existing filename to be used in a later script step. This function does not create the file or write any content to it. If the selected file already exists, the user is prompted to confirm whether they want to overwrite it.
Parameters:
Parameter name | Type | Description |
---|---|---|
prompt | string | Text displayed in the title bar of the save file dialog. |
InDir | string | Path pre-selected in the dialog. |
filename | string | A proposed filename that the user can edit. |
Return value: Type string: The full path of the selected file. If empty, it means the user clicked the "Cancel" button.
Example:
string root = "~/Documents/";
string selectedFile = save_file_dialogue("Save file as?", root, "test.txt");
Use this function to allow users to specify a file location and name for saving files in your FileMaker solution.
References:
- No references available at this time.