of_getheight


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv   >   of_getheight   

Full name pfc_n_cst_dwsrv.of_getheight
Access public
Extend of long
Return value long
Prototype public function long of_getheight()

Name Datatype
No Data

Name Datatype
li_Bands Integer
li_Cnt Integer
ll_detail long
ll_height long
lnv_string n_cst_string
ls_Band String[]
ls_DWBands String

public function long of_getheight ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_GetHeight
//
//	Access:    		Public
//
//	Arguments: 		None
//
//	Returns:  		long 
//   					The height of the datawindow
//
//	Description:  	Get the height of the datawindow associated with this service.
//					  	The	height is calculated by adding the height of all bands +
//					  	the height of the detail band * the number of rows.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_Bands, li_Cnt
long		ll_height
long		ll_detail
String	ls_DWBands, ls_Band[]
n_cst_string lnv_string

ls_DWBands = idw_Requestor.Describe("DataWindow.Bands")

li_Bands = lnv_string.of_ParseToArray (ls_DWBands, "~t", ls_Band)

For li_Cnt = 1 To li_Bands
	If ls_Band[li_Cnt] <> "detail" Then
		ll_Height += Integer(idw_Requestor.Describe("Datawindow." + &
							ls_Band[li_Cnt] + ".Height"))
	End if
Next

ll_Detail = idw_Requestor.RowCount() * &
			Integer(idw_Requestor.Describe("Datawindow.Detail.Height"))

ll_Height += ll_Detail

Return ll_Height
end function

     
Name Owner
pfc_n_cst_dwsrv_report.of_SetBackground pfc_n_cst_dwsrv_report
pfc_w_selection.open pfc_w_selection
pfc_w_restorerow.open pfc_w_restorerow

     
Name Owner
datawindow.describe datawindow
datawindow.rowcount datawindow
systemfunctions.integer systemfunctions
pfc_n_cst_string.of_parsetoarray pfc_n_cst_string

     
Full name
No Data

     
Name Scope
No Data