GetUserProp
For getting user properties of a specific user.
Public Function GetUserProp(ByVal userId As Long, ByRef UserProp() As Byte) As Long
Parameters
In/out |
Name |
Data type |
Description |
In |
UserId |
Long |
Index of the user whose properties are to be fetched |
Out |
UserProp |
Byte[TagUser] |
Properties of user in the form of the byte array as a return parameter |
Description
This function is called form both desktop and admin only and only in shared cabinet. It is called whenever user properties are fetched as at the time of login in either admin or desktop.
Return value
Name |
Description |
1 |
In case of success |
-3 |
Cabinet not connected |
-4 |
Invalid Operation |
Example
Dim userId As Long
Dim UserProp() As Byte
Dim gPDb As PanDb.pdbCls
Set gPDb = New PanDb.pdbCls
userId = 6
lRetVal=gPDb.GetUserProp(userId,UserProp)
if lRetVal <> NG_SUCCESS Then
MsgBox gPDb.ErrDescription, vbInformation
Screen.MousePointer = vbNormal
End if