of_getenabled


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_printpreview   >   of_getenabled   

Full name pfc_n_cst_dwsrv_printpreview.of_getenabled
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_getenabled()

Name Datatype
No Data

Name Datatype
lb_rc boolean
lnv_conversion n_cst_conversion
ls_printpreview string

public function boolean of_getenabled ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetEnabled
//
//	Access:  public
//
//	Arguments:  none
//
//	Returns:  boolean
//	true = printpreview is currently enabled (DW is in preview mode)
//	false = printpreview is not currently enabled
//	NULL = error
//
//	Description:  Gets whether printpreview is currently enabled
//	(DW is in preview mode)
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

boolean	lb_rc
string		ls_printpreview
n_cst_conversion	lnv_conversion

//////////////////////////////////////////////////////////////////////////////
// Check for valid requestor
//////////////////////////////////////////////////////////////////////////////
if IsNull(idw_requestor) Or not IsValid (idw_requestor) then
	SetNull (lb_rc)
	return lb_rc
end if

//////////////////////////////////////////////////////////////////////////////
// Get printpreview mode
//////////////////////////////////////////////////////////////////////////////
ls_printpreview = idw_requestor.object.datawindow.print.preview
if ls_printpreview = "?" then
	SetNull (lb_rc)
	return lb_rc
end if

return lnv_conversion.of_Boolean (ls_printpreview)

end function

     
Name Owner
pfc_u_dw.pfc_printpreview pfc_u_dw
pfc_u_dw.pfc_ruler pfc_u_dw
pfc_u_dw.pfc_zoom pfc_u_dw
pfc_u_tabpg_dwproperty_srvprintpreview.pfc_propertypopulate pfc_u_tabpg_dwproperty_srvprintpreview
pfc_u_tabpg_dwproperty_srvprintpreview.pfc_propertyapply pfc_u_tabpg_dwproperty_srvprintpreview

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.setnull systemfunctions
pfc_n_cst_conversion.of_boolean pfc_n_cst_conversion

     
Full name
No Data

     
Name Scope
No Data