PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
gpwGetUserInfo (Function)
In French: gpwRecupInfoUtilisateur
Retrieves information about the current user (application that is using the user groupware).
Example
// Retrieve the first name of user
FirstName is string
FirstName = gpwGetUserInfo(gpwInfoFirstName)

// Retrieve the list of groups for the user
sGroupList is string = gpwGetUserInfo(gpwInfoGroup)

FOR EACH STRING sGroup OF sGroupList SEPARATED BY TAB
       Trace(sGroup)
END
Syntax
<Result> = gpwGetUserInfo(<Information>)
<Result>: Character string or boolean
Requested information.
<Information>: Constant
Requested type of information:
gpwInfoSupervisorUsed to find out whether the connected user is an administrator (<Result> will be set to True) or not (<Result> will be set to False).
gpwInfoGroupName of the group for the user or list of groups separated by tab.
gpwInfoLoginLogin of user. Login of the user or constant corresponding to the type of user:
  • gpwSupervisor: Supervisor of the application
  • gpwVisitor: Visitor.
gpwInfoNameLast name of user
gpwInfoFirstNameFirst name of user
Components
WINDEVWEBDEV - Server code wd230gpu.dll
Linux wd230gpu.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment