WinBinder Manual/wb sys dlg save

From wiki.swiftlytilting.com

Displays the standard Save dialog box.

Contents

Syntax

string wb_sys_dlg_save ([int parent[, string title [, string filter[, string path[, string filename]]]]])
  • parent is Parent window of the save dialog, or NULL if the dialog is to have no parent.
  • title is the window title.
  • filter sets the file types available in the drop down box. It is an array of arrays, with each sub array having two elements. The first element is a string describing the filter, and the second element is a file filter such as *.*
  • path presets the path to select
  • filename presets the filename to save to

Returns

Returns a string representing the file to save, including the path, name and the file extension or an empty string, if the action has been cancelled; FALSE, if an error ocurred.

Example

<?

$path 
getcwd();
$filter = array(array('All Files','*.*'),array('PHPW Files''*.phpw'));

if(
$filename wb_sys_dlg_save(NULL'Save file'$filter$path))
{
   
wb_message_box(NULL$filename);

?>

See also