Please move the code:
With fDataModuleTask.adoQ_OPERATORI Do
Begin
if RecordCount > 0 then
Begin
First;
while Not Eof do
Begin
dbgTASK.Combobox.Items.Add(FieldByName('RES').AsString);
Next;
End;
End;
End;
End;
Begin
if RecordCount > 0 then
Begin
First;
while Not Eof do
Begin
dbgTASK.Combobox.Items.Add(FieldByName('RES').AsString);
Next;
End;
End;
End;
End;
to the event OnGetEditorProp()