Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FindUserIdLocal - method of object Pm

Description:
Returns the identifier of the local user that refers to the entered login parameters.
Syntax:
FindUserIdLocal(sName As String, sPassword As String) As String
Calling:
b = Pm.FindUserIdLocal(sName, sPassword)
Parameters:
sName(String) User name
sPassword(String) Login password of the user
Note:
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Example:
Test if the local user, entered by the login name and password, is the member of the "OPERATOR" group
VBScriptSelect and copy to clipboard

If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdLocal("JAN NOVY", "JN")) Then
  '...
End If
PROMOTIC 8.3.26 SCADA system documentation - MICROSYS, spol. s r.o.

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