of_setdberrormsg


pfcmain.pbl   >   pfc_w_master   >   of_setdberrormsg   

Full name pfc_w_master.of_setdberrormsg
Access public
Override of integer
Return value integer
Prototype public function integer of_setdberrormsg(n_cst_dberrorattrib)

Name Datatype
anv_dberrorattrib n_cst_dberrorattrib

Name Datatype
No Data

public function integer of_setdberrormsg (n_cst_dberrorattrib anv_dberrorattrib);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetDBErrorMsg
//
//	Access:  public
//
//	Arguments:  
//	anv_dberrorattrib	The error information that needs to be displayed by the 
//		PFC Save process, after the appropriate database rollback.
//
//	Returns:  integer
//	 1 if the function succeeds
//	-1 if an error occurs.
//
//	Description:
//	Sets the error information that needs to be displayed by the PFC Save
//	process, after the appropriate database rollback.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
// 6.0   Initial version - Replaces obsoleted function of_SetDBErrorMsg(string).
//
//////////////////////////////////////////////////////////////////////////////
//
//	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 the argument.
If IsNull(anv_dberrorattrib) Then
	Return -1
End If

// Set the error information.
inv_dberrorattrib = anv_dberrorattrib

// Provide backward compatibility.
If IsValid(anv_dberrorattrib) Then
	of_SetDBErrorMSG(anv_dberrorattrib.is_errormsg)
End If

return 1
end function

     
Name Owner
pfc_w_master.pfc_dberror pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_w_master.of_setdberrormsg pfc_w_master

     
Full name
No Data

     
Name Scope
No Data