Reply To: Unlimited number of named Random Access Markers

Product Compare Forums Multi-Edit Suggestions Unlimited number of named Random Access Markers Reply To: Unlimited number of named Random Access Markers

#6663
Bret Sutton
Participant

When I want to use bookmarks within a macro, I always use the random marks, taking care to save them on entry and restore them on exit, just in case they are already in use: [code:152foqpx] In definitions:
int line10, col10, row10, offset10;
On entry:
Get_Mark_Record(10,2,line10,col10,row10,offset10);
On exit:
Set_Mark_Record(10,2,line10,col10,row10,offset10);
[/code:152foqpx]I can use all ten random bookmarks, if I need to. But I’ve never gone beyond three. So I don’t see an advantage in trying to use any in the third set. If I needed to, then I would save/restore them the same way; and that would avoid any conflicts with any other uses, right? (Unless my macro called a system macro that just happened to use them without doing a similar save/restore. But such an omission wouldn’t be likely, right? <g>)

Given the above save/restore technique, what’s the advantage to using set 3 in DbTools? Speed? How much?