AddTaskToRole()

Examples


The AddTaskToRole() function of the sySecurityTaskRole form adds a task to the specified security role.

Syntax

AddTaskToRole(role_ID, task_ID)

Parameters

role_ID – A string specifying the ID of the security role to which a task is being added.

task_ID – A string specifying the ID of the task being added.

Return value

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

[spacer]

Constant

Description

OKAY

The task was added successfully

DUPLICATE

The task already exists



Documentation Feedback