|
of_getuserid
|
|
Full name
|
pfc_n_cst_platformsol2.of_getuserid
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_getuserid()
|
Name
|
Datatype
|
lb_rc
|
boolean
|
li_size
|
integer
|
ls_name
|
string
|
public function string of_getuserid ();//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetUserID
//
// Access: public
//
// Arguments: none
//
//
// Returns: string - user id/name
//
//
// Description: Return the user id/name currently logged into a network
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
string ls_name
integer li_size = 255
boolean lb_rc
ls_name = space(li_size)
lb_rc = GetUserNameA( ls_name, li_size)
if not lb_rc THEN
return ""
else
return ls_name
end if
end function