ADDPROGRAMGROUP

Action

Instructs Program Manager to create a new program group.

 

Syntax

ADDPROGRAMGROUP ("group name", common group flag)

 

Parameters

Group name

Identifies the group window to be added.

Common group flag

Optional numeric parameter. This parameter is available only on Windows NT or higher. Common group flag can have the following values:

0

Creates a personal group.

1

Creates a common group. The current user must have administrative privileges, or the function fails.

 

Returns

0

Program group added

Error code

Function failed

 

Example

If AddProgramGroup("NewGroup", 0) = 0
   ? "NewGroup has created...."
Endif