|
of_setmem
|
|
Full name
|
pfc_n_cst_winsrv_statusbar.of_setmem
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setmem(boolean)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_setmem (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetMem
//
// Access: Public
//
// Arguments:
// ab_switch True to have the setting on the Status Bar.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// Sets the flag to indicate if Computer memory is to be reported on the Status Bar.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_rc
// Check arguments.
If IsNull(ab_switch) Then
Return -1
End If
If ib_mem = ab_switch Then
// No change.
Return 0
End If
// Set the flag.
ib_mem = ab_switch
// Register or Unregister the Pre-Defined option.
If ib_mem Then
li_rc = of_RegisterPreDefined('pfc_mem', ii_memwidth)
Else
li_rc = of_UnRegisterPreDefined('pfc_mem')
End If
Return li_rc
end function