July 26th, 2012, 12:11 PM
Bookmark is invalid...
I'm working with the application which consists 6 modules,but except one module i receive the error 'Bookmark is invalid', while executing an application....,
What would be the reason ?
Thanks in advance...
July 26th, 2012, 05:18 PM
Is it possible that the database record you have bookmarked has been deleted when you want to go back to it? Or other possibilities, you are filtering the dataset and the bookmarked record is not visible while filtered = true, you closed, then re-opened the dataset, or possibly even refreshed (someone else may have deleted the record in a multi-user environment).
Originally Posted by Murugavel
I do use bookmarks, but I always wrap them within try..try..except..finally blocks.
There is Query1.BookMarkValid(bk) that returns a boolean value, but it is unreliable in that it will return true even if the dataset cannot go to the bookmark for some of the reasons I gave above.
bk := Query1.GetBookMark;
//allocates memory, so wrap in try..finally
//work with your dataset here
//can cause error so wrap in try..except
//silences the error if bookmark is invalid