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(string)

Name Datatype
as_msg string

Name Datatype
No Data

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

is_dberrormsg = as_msg
return 1
end function

     
Name Owner
pfc_w_master.of_setdberrormsg pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data