|
of_save
|
|
Full name
|
pfc_n_cst_dwsrv_querymode.of_save
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_save(string,ref string,ref string)
|
public function integer of_save (string as_title, ref string as_pathname, ref string as_filename);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Save
//
// Access: public
//
// Arguments:
// as_title title of the dialog box.
// as_pathname string variable whose value is the default filename and
// which will store the returned path and filename. The default
// filename is displayed in the File name box, but the user can specify another name.
// as_filename string variable in which you want to store the returned filename
//
// Returns: integer
// 1 = The save was successful
// 0 = The user clicked the Cancel button or Windows canceled the display
// -1 = The save was unsuccessful
// -2 = The save was unsuccessful due to File I/O errors
//
// Description:
// Saves query criteria to disk (query criterias are loaded in "of_Load")
// This function will not invoke the File Save dialog if the datawindow is not in QueryMode.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
return of_Save (as_title, as_pathname, as_filename, ".txt", "Query (*.txt),*.txt")
end function