|
of_setnotifyseverity
|
|
Full name
|
pfc_n_cst_error.of_setnotifyseverity
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setnotifyseverity(integer)
|
public function integer of_setnotifyseverity (integer ai_severity);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetNotifySeverity
//
// Access: public
//
// Arguments:
// ai_severity Severity level.
//
// Returns: Integer
// 1 if it succeeds and -1 if it fails
//
// Description: This is the thershold to determine if the error message will
// be sent (notify the user(s) listed in the instance variable
// array is_notifywho[]).
// For pre-defined errors, each error has a severity assigned
// to it.
// With this function, you can send an error notification message
// with any severity level. For example, if the severity level
// is set to 5, all errors with a severity level of 5 or
// greater will generate a mail notification.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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 argument.
If IsNull(ai_severity) Then
Return -1
End If
ii_notifyseverity = ai_severity
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|