|
of_getsheets
|
|
Full name
|
pfc_n_cst_winsrv_sheetmanager.of_getsheets
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getsheets(ref window[])
|
Name
|
Datatype
|
li_counter
|
integer
|
lw_sheet
|
window
|
public function integer of_getsheets (ref window aw_sheet[]);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Getsheets
//
// Access: public
//
// Arguments: aw_sheet[] by ref
//
// Returns: integer
// number of open sheets
// -1 = error
//
// Description: Get reference to all open sheets
//
//////////////////////////////////////////////////////////////////////////////
//
// 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 all sheets
lw_sheet = iw_requestor.GetFirstSheet ()
if IsValid (lw_sheet) then
do
li_counter++
aw_sheet[li_counter] = lw_sheet
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
|
window.getfirstsheet |
window
|
window.getnextsheet |
window
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|