EnvUserID()

Returns the current user ID.

Token ID

AFTKN_USERID or 764

Syntax

ANSISTRING EnvUserID([ENUM UserType];
                        [ENUM IDStyle])

Parameters

UserType As ENUM

(Optional) Enumerated Values:

  • 1 ActiveUser
  • 0 RootUser
IDStyle As ENUM

(Optional) Enumerated Values:

  • 1 Full
  • 0 Partial
  • 2 InternetEmail - guaranteed to return the email address in Internet format (user@domain)

Return Values

ANSISTRING UserID