Why deDataSetScroll not raised on TOraQuery.Locate ?
Why deDataSetScroll not raised on TOraQuery.Locate ?
Turns out there is no way to know about changing the current record in dataset.
Re: Why deDataSetScroll not raised on TOraQuery.Locate ?
Hello,
Please describe in more details the problems you have faced with when using the Locate method - and we will try to help you solve them.
Please describe in more details the problems you have faced with when using the Locate method - and we will try to help you solve them.
Re: Why deDataSetScroll not raised on TOraQuery.Locate ?
I have prepared an example. If you click the mouse on the recording in the grid, or use a next, prior in the DBNavigator, then the event deDataSetScroll comes. If you do locate it, the event never comes. There is a more General deDataSetChange event's. But it is too General.
https://onedrive.live.com/redir?resid=D ... file%2czip
https://onedrive.live.com/redir?resid=D ... file%2czip
Re: Why deDataSetScroll not raised on TOraQuery.Locate ?
This is the standard behavior of the Locate method (you can compare with other data access components). When navigating through the DataSet, the MoveBy method is called. In it, deDataSetScroll is called. When using the Locate method, there are BookMarks used, which don't cause such behavior.