Is this a bug or I am I missing something?

IW 14.1.4 CGD 3.0.0.115
The code in this event is not working correctly - for me.
First time the event is triggered I receive a list index out of bounds.
Every time after the first trigger a value is returned but is the value for the item that was previously selected not the value for the new/currently selected item.
Advice please.
The code in this event is not working correctly - for me.
- Code: Select all
procedure TiwcgjqfrmMedScriptTheraputic.JQDynaTreeJQDynaTreeOptionsSelect(Sender: TObject; AParams: TStringList);
begin
iwcgjqmx2.Lines.Text := JQDynaTree.SelectedNodes[0];
end;
First time the event is triggered I receive a list index out of bounds.
Every time after the first trigger a value is returned but is the value for the item that was previously selected not the value for the new/currently selected item.
Advice please.