GetUserInfo - method of object Pm

Obtaining the inforation from the user system.
GetUserInfo(sParams As String) As Variant
users = Pm.GetUserInfo("what:cfguserlist;")
sParams(String) Additional parameters defining which information to be obtained. Entries are in format KeyVal, for example "what:cfguserlist;type:local;".
"what:sss;" - The basic setting defining what to return.
what:cfguserlist; - User identifiers list (comma separated values ',').
what:cfggrouplist; - User groups identifiers list (comma separated values ',').
what:loguserarray; - An array of references to logged users (User objects). The number of logged users can be obtained by the UBound function.
"type:sss;" (optional) - Specifies whether to return all users only local users or only network users. If not set, then all users are returned (local and network).
type:local; - Only local users.
type:net; - Only network users.
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Obtains the list of all local users. First as the user identificars list separated by comma (',') followed by transfering the list into an array of identificators.
VBScriptSelect and copy to clipboard

Dim sUsers, aUsers
sUsers = Pm.GetUserInfo("what:cfguserlist;type:local;")
aUsers = Pm.StringSplit(sUsers, " ")
Obtains an array of references to all logged users (User objects) followed by the list of each logged user identifier reported into the INFO system.
VBScriptSelect and copy to clipboard

Dim i, n, a
a = Pm.GetUserInfo("what:cfguserlist;type:net;")
n = UBound(a)
For i = 0 To n
  Pm.Debug a(i)
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- GetUserInfo
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice