../pvss.htm menu.gif basics.gif

getUserId()

Returns the associated ID for the specified user name.

Synopsis

unsigned getUserId([string name]);

Parameters

Parameters

Description

name

User name

Return value

 

Errors

Description

Returns the associated ID for a specified user name. If no user of this name exists, 65535 will be returned. This value corresponds to the DEFAULT_USERID. If the function has been called without parameters, it will return the ID of the current user. It is defined by the first call of the function setUserId().

Each manager, except Data and Event Managers, starts by default with the User ID DEFAULT_USERID. This constant checks also the return value of the function getUserId().

CTRL constant

Description

DEFAULT_USERID

Identification of the current user.

IconExample

main()
{
...
getUserId("root")
...
}

Relates to

User administration

Availability

UI, CTRL, DP

See also

      setUserId()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved