DeleteGroup

Called when a group is deleted

Public Function DeleteGroup(ByVal GroupId As Long) As Long

 

Parameters

In/out

Name

Data type

Description

In

GroupId

Long

Index of group being deleted

 

Description

This function is called from admin. It is called when any group is deleted. It is passed with the  Index of the group that has to be deleted.

 

Return value

Name

Description

NG_SUCCESS

In case of success

-1

Invalid operation

-3

Cabinet not connected

 

Example

Dim GroupId         As Long

Dim lRetval           As  Long

GroupId = 12

lRetVal=gPDb(miCurCabId). DeleteGroup(GroupId)

  if lRetVal <> NG_SUCCESS Then

    MsgBox gPDb(miCurCabId).ErrDescription, vbInformation

Endif