of_setdberrormsg


pfcapsrv.pbl   >   pfc_n_cst_luw   >   of_setdberrormsg   

Full name pfc_n_cst_luw.of_setdberrormsg
Access public
Extend of integer
Return value integer
Prototype public function integer of_setdberrormsg(n_cst_dberrorattrib)

Name Datatype
No Data

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 verstion.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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

// If requested use the assist funtionality.
If ib_assist Then 
	of_Assist(is_instancename+'.of_SetDBErrorMsg to='+anv_dberrorattrib.is_errormsg)
End If

Return 1
end function

     
Name Owner
pfc_n_cst_luw.of_dberror pfc_n_cst_luw

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_n_cst_luw.of_assist pfc_n_cst_luw

     
Full name
No Data

     
Name Scope
No Data