of_setuser


pfcapsrv.pbl   >   pfc_n_cst_error   >   of_setuser   

Full name pfc_n_cst_error.of_setuser
Access public
Extend of integer
Return value integer
Prototype public function integer of_setuser(string)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setuser (string as_user);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetUser
//
//	Access:    		Public
//
//	Arguments:
//   as_user 		User using this service.
//
//	Returns:   		Integer
//   					1 if successful, otherwise -1.
//
//	Description:  	Set the user using this service.   This name will used in the
//						message text information for logging or MAPI notifications.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0.02   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 to see if the passed string is valid.
If IsNull(as_user) or Len(Trim(as_user))=0 Then
	Return -1
End If

// Set the user using this service.
is_user = as_user
Return 1
end function

     
Name Owner
pfc_n_cst_appmanager.of_seterror pfc_n_cst_appmanager

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.len systemfunctions
systemfunctions.trim systemfunctions

     
Full name
No Data

     
Name Scope
No Data