This function returns the role by the role name.
object.LoadRole(aRoleName)
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aRoleName |
In, Required | string |
The name of the role |
Display the name and ID of the role.
Dim aRole
Dim aRoleName
aRoleName = "Clinical User"
Set aRole = Profile.LoadRole(aRoleName)
if aRole is nothing then
Profile.MsgBox("There is no role with the specified role name")
else
Profile.MsgBox("The role name is " & aRoleName & vbNewLine &_
"ID of the role name is "& aRole.RoleId)
end ifIn Profile Client v8 on User Interface Role can be found in .