|
of_initsecurity
|
|
Full name
|
pfc_n_cst_security.of_initsecurity
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_initsecurity(n_tr,string,string,string)
|
public function integer of_initsecurity (n_tr atr_trans, string as_appname, string as_userid, string as_defaultgroup);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_InitSecurity
//
// Access: public
//
// Arguments :
// atr_trans used to connect to the database
// as_appname application id
// as_userid user id
// as_defaultgroup group to be used if the user does not belong to one
//
// Returns: Integer. 1 = OK
// -1 = Transaction not connected
// -2 = Application not in dataabse
// -3 = User not in database
// -4 = User is not a member of any groups and default group does not exist
// -5 = Default group not supplied
// -6 = Error retrieving information
//
//
// Description: Initialize the database connection, application and user id's.
// Used when setting security.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Added ab_precache parameter
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
return of_initsecurity(atr_trans, as_appname, as_userid, as_defaultgroup, False)
end function