|
of_setruler
|
|
Full name
|
pfc_n_cst_dssrv_printpreview.of_setruler
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setruler(boolean)
|
public function integer of_setruler (boolean ab_display);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetRuler
//
// Access: public
//
// Arguments: ab_display
// true = display rulers
// false = Do not display rulers
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description: Sets whether rulers are displayed
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_display) then
return -1
end if
//////////////////////////////////////////////////////////////////////////////
// Set ruler display
//////////////////////////////////////////////////////////////////////////////
ids_requestor.object.datawindow.print.preview.rulers = ab_display
return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|