Subject Re: [IBO] Need help to find out the current selection of an IB_Grid
Author Luiz Alves
> However, the information I need is if ANY row (or NONE at all) is selected
> (to make up for multi-row selections in the future). Is there a short way
> for this, or do I need to walk the Selected[] for all rows (and if so, how
> do I find the min and max RowNum I can use)?.

Jeroen,

What about:

function qry_has_selection(qry :TIB_Query):boolean;
var MyList:TStringList;
begin
MyList:=TStringList.Create;
try
with qry do begin
SelectedBookMarks(MyList);
result:=MyList.Count>0
end;
finally
MyList.free;
end;
end;

HTH,
Luiz.