pfc_sortdlg


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_sort   >   pfc_sortdlg   

Full name pfc_n_cst_dwsrv_sort.pfc_sortdlg
Access public
Extend of integer
Return value integer
Prototype event integer pfc_sortdlg()

Name Datatype
No Data

Name Datatype
li_rc integer
ls_nullformat string

event pfc_sortdlg;call super::pfc_sortdlg;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  			pfc_SortDlg
//
//	(Arguments: 	None)
//
//	Returns:   		Integer
//   					 1 if it succeeds.
//						 0 if operation was cancelled by the user.
//						-1 if an error occurs.
//
//	Description:  	Sorts a datawindow based on the sort constructed
//					  	by the user thru one of the PFC Sort 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
string	ls_nullformat
SetNull (ls_nullformat) 

// Check required reference.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
	Return -1
End If

// This will open a sort dialog.
li_rc = of_SetSort (ls_nullformat) 

// Set focus back on the datawindow.
idw_requestor.SetFocus()

// Check if the user cancelled the operation (li_rc =0)
// or if otherwise failed(li_rc <-1).
IF li_rc <= 0 THEN Return li_rc

// Sort the requesting datawindow.
Return of_Sort() 
end event

     
Name Owner
pfc_u_dw.pfc_sortdlg pfc_u_dw

     
Name Owner
dragobject.setfocus dragobject
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.setnull systemfunctions
pfc_n_cst_dwsrv_sort.of_setsort pfc_n_cst_dwsrv_sort
pfc_n_cst_dwsrv_sort.of_sort pfc_n_cst_dwsrv_sort

     
Full name
No Data

     
Name Scope
No Data