Page 1 of 1

LocateRecord with sorted series don't work

Posted: Wed Jun 22, 2005 12:23 pm
by 9337817
If the series is sorted the

unit DBChart_LocateRecord

procedure TDBChartRecordLocate.DBChart1ClickSeries(Sender: TCustomChart;
Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
// Use the bookmarks to find the database record for the clicked point...
Table1.GotoBookmark(BookMarks[ValueIndex]);
end;


don't find the correct value

I have uploaded some files showing the problem (locate reco)

Posted: Wed Jun 22, 2005 1:05 pm
by 9337817
The files are a part of the Features demo


Jørgen

Posted: Thu Jun 30, 2005 9:48 am
by narcis
Hi Jørgen,

I've already replied to your newsgroups message:

This is the expected behaviour as you ordered the series. For this to work
you should sort your table, database or grid in the same way you ordered the series or send the record number to your query.