CreateSecurityRole()

Examples


The CreateSecurityRole() function of the sySecurityRole form creates a new security role.

Syntax

CreateSecurityRole(role_ID, role_name, description)

Parameters

role_ID – A string specifying the ID of the role being created.

role_name – A string specifying the name displayed for the security role.

description – A string specifying the description for the security role.

Return value

An integer indicating whether the security role was added. The value corresponds to one of the following constants:

[spacer]

Constant

Description

OKAY

The security role was added successfully

DUPLICATE

The security role already exists



Documentation Feedback