Hallo,
Method that handles the GroupDestroyed event doesn't work as I expect?
I work with FlowChartX 4.2 via the OCX interface.
If this event is triggered the group parameter has always a count (vBoxNr) of zero while there are still boxes in this group?
I know that the group is the correct group because the group Tag number is the number I expect.
Can somebody tell me what I do wrong here?
Thanks in advance.
Here my event source code:
trigger GroupDestroyed
params
handle group : inout
endparams
variables
Handle vBoxes, vBox
Numeric vBoxNr, vTag
endvariables
group->Get_AttachedBoxes(vBoxes)
vBoxes->Get_Count(vBoxNr) ???
group->Get_Tag(vTag)

putmess "GroupDestroyed: found %%vBoxNr boxes to delete of the group with Tag:%%vTag"
while (vBoxNr > 0)
vBoxNr -= 1
vBoxes->Get_Item(vBox, vBoxNr)
$FlowChartX$->DeleteItem(vBox)
endwhile
end ; trigger GroupDestroyed