|
of_seterror
|
|
Full name
|
pfc_n_cst_appmanager.of_seterror
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_seterror(boolean)
|
public function integer of_seterror (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetError
//
// Access: public
//
// Arguments:
// ab_switch True - start (create) the service,
// False - stop (destroy) the service
//
// Returns: Integer
// 1 - Successful operation.
// 0 - No action taken.
// -1 - An error was encountered.
//
// Description: Starts or stops the Error Handling Service.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Enhanced to default User name.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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 arguments
If IsNull(ab_switch) Then
Return -1
End If
IF ab_Switch THEN
IF IsNull(inv_error) Or Not IsValid (inv_error) THEN
inv_error = CREATE n_cst_error
inv_error.of_SetUser( this.of_GetUserID() )
Return 1
END IF
ELSE
IF IsValid (inv_error) THEN
DESTROY inv_error
Return 1
END IF
END IF
Return 0
end function