property OnGetAllGroups: TRVCmdEvent;
The list of groups is contained in ACmd parameter.
This command has the following parameters:
'GUIDCount' (integer) – count of returned groups
'GUIDGroup1', 'GUIDGroup2', ... (string) – group identifiers (from 1 to the value of 'GUIDCount')
procedure TfrmMain.RVCamReceiver1GetAllGroups(Sender: TRVCamReceiver;
SessionKey: TRVSessionKey; const GUIDGroup, GUIDUser: TRVMAnsiString;
i, Count : Integer;
GUIDGroup : TRVMAnsiString;
Count := ACmd.ParamByName('GUIDCount').AsInteger;
for i := 1 to Count do
If you perform time consuming operations inside an event, it makes sense to compare values of SessionKey parameter and SessionKey property, to make sure that a connection was not closed or reopened.
Warning: Do not display modal forms in this event.