|
pfc_filterdlg
|
|
Full name
|
pfc_n_cst_dwsrv_filter.pfc_filterdlg
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_filterdlg()
|
Name
|
Datatype
|
li_rc
|
integer
|
ls_nullformat
|
string
|
event pfc_filterdlg;call super::pfc_filterdlg;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_FilterDlg
//
// (Arguments: None)
//
// (Returns: Integer
// 1 if successful
// 0 if use cancelled the operation
// -1 if an error is encountered)
//
// Description: Filters a datawindow based on the filter constructed
// by the user thru one of the PFC Filter dialogs.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 5.0.04 Set focus back on the datawindow.
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc
// Check the dw reference
If IsNull(idw_requestor) Or Not IsValid(idw_requestor) Then Return -1
// Create a null string.
string ls_nullformat
SetNull ( ls_nullformat )
// This will cause the Filter dialog to open.
li_rc = of_SetFilter(ls_nullformat)
// Set focus back on the datawindow.
idw_requestor.SetFocus()
If li_rc <= 0 Then Return li_rc
// Filter the requestor.
Return of_Filter()
end event