Home > comp > gb.form.dialog > dialog > savefile 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Dialog.SaveFile (gb.form.dialog)
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