of_getsheetcount


pfcwnsrv.pbl   >   pfc_n_cst_winsrv_sheetmanager   >   of_getsheetcount   

Full name pfc_n_cst_winsrv_sheetmanager.of_getsheetcount
Access public
Extend of integer
Return value integer
Prototype public function integer of_getsheetcount()

Name Datatype
No Data

Name Datatype
li_counter integer
lw_sheet window

public function integer of_getsheetcount ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_Getsheetcount
//
//	Access:  public
//
//	Arguments:  none
//
//	Returns:  integer
//	number of open sheets
//	-1 = error
//
//	Description:  Returns sheet count for frame requestor
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
integer	li_counter
window	lw_sheet

// Validate window requestor
if IsNull(iw_requestor) Or not IsValid (iw_requestor) then
	return -1
end if

// Get number of sheets
lw_sheet = iw_requestor.GetFirstSheet ()
if IsValid (lw_sheet) then
	do
		li_counter++
		lw_sheet = iw_requestor.GetNextSheet (lw_sheet)
	loop until IsNull(lw_sheet) Or not IsValid (lw_sheet)
end if

return li_counter


end function

     
Name Owner
No Data

     
Name Owner
window.getfirstsheet window
window.getnextsheet window
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data