bgiSaveFileDialog

Category: BGI GUI

Syntax:

bgiSaveFileDialog:String(title:String, defaultPath:String, window:Int)


Parameters

Returns

String



Summary

Shows the desktop's Save File dialog and returns the path chosen.

Takes title (String), defaultPath (String) and window (Int). When defaultPath is a folder the dialog opens in it; otherwise the dialog opens in its folder with its file name filled in, so it need not exist yet. window must be a BGI window, which the dialog stays on top of.

Returns the full path, or an empty string if the dialog is cancelled - or if window is not a BGI window, in which case no dialog opens. As on Windows, choosing an existing file does not ask whether to replace it.

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn