Dialog.SaveFile (gb.qt4)
Static Function SaveFile ( ) As Boolean
Calls the file standard
Dialog to get the name of a file to save.
Returns
TRUE if the user clicked on the Cancel button,
and
FALSE if the user clicked on the OK button.
This example shows how you can save the content of a
TextArea to a file selected by the user. If the user cancels the dialog, the file is not saved.
Examples
PUBLIC SUB ButtonSave_Click()
Dialog.Filter = ["*.txt", "Text Files"]
IF Dialog.SaveFile() THEN RETURN
File.Save(Dialog.Path, TextAreaEdit.Text)
CATCH
Message.Info(Error.Text)
END