Página 1 de 1
When does OnBookMark Event gets invoked ?
Publicado: Sab Jul 27, 2013 4:15 pm
por Milan Mehta
When does OnBookMark Event gets invoked in TBrowse ?
If I wish to know my Record Position (absolute and not relative) in Browse,
can I use this Event ?
If Yes, how ?
TIA
Milan.
When does OnBookMark Event gets invoked ?
Publicado: Lun Jul 29, 2013 12:50 pm
por ignacio
Milan Mehta escribió el sáb, 27 julio 2013 16:15When does OnBookMark Event gets invoked in TBrowse ?
If I wish to know my Record Position (absolute and not relative) in Browse,
can I use this Event ?
If Yes, how ?
TIA
Milan.
Milan,
The OnBookMark event is triggered every time the Browse gets or sets the 'Recno' position. Is normally used to change the standard bookmark behaviour.
The Absolute position:
In TArrayBrowse: Use nArrayAt
Note: If your array is reordered or filtered, use the method nArrayOrgAt() (not documented)
In TDbfBrowse: Use method Bookmark() or DbRecno() as always.
In TDBBrowse: Use method Bookmark()
Regards,