ISProfile.LoadRole

Description

This function returns the role by the role name.

Syntax

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

Return Value

ISRole

Returns the role by the role name.

Example

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 if
Note:

In Profile Client v8 on User Interface Role can be found in Organisation > Roles.

Version information

Added in v7.8.0