|
of_setenabled
|
|
Full name
|
pfc_n_cst_dssrv_printpreview.of_setenabled
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setenabled(boolean)
|
public function integer of_setenabled (boolean ab_enabled);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetEnabled
//
// Access: public
//
// Arguments: ab_enabled
// true = display DW in printpreview mode
// false = Do not display in printpreview mode
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description: Sets whether printpreview mode is currently enabled
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// Check for valid requestor
//////////////////////////////////////////////////////////////////////////////
if IsNull(ids_requestor) Or not IsValid (ids_requestor) then
return -1
end if
//////////////////////////////////////////////////////////////////////////////
// Check argument
//////////////////////////////////////////////////////////////////////////////
if IsNull(ab_enabled) then
return -1
end if
//////////////////////////////////////////////////////////////////////////////
// Set printpreview mode
//////////////////////////////////////////////////////////////////////////////
ids_requestor.object.datawindow.print.preview = ab_enabled
return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|