Returns the permissions' integer value represented by a string composed by multiple permissions (characters).
The permission String argument is an unordered sequence of permission characters. If a character does not represent a possible permission, then the method returns -1.
See the getPermissionsValue() method for more information.
// Retrieve Permission Values
display "Get Permissions (X - returns 1): "
+ myPart1.getPermissionValue(permission : "X")
display "Get Permissions (G - returns 32) : "
+ myPart1.getPermissionValue(permission : "G")
display "Get Permissions (A - returns 8) : "
+ myPart1.getPermissionValue(permission : "A")
display "Cast Permission (XGA - returns 41): "
+ myPart1.castPermissionFrom(permission : "XGA")
| Name | Type | Description | Mode |
|---|---|---|---|
| permission | String | in |