|
Home > Archive > dBASE Bugs > April 2006 > rowset.goto() does NOT reset the rowset.indexName property
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
rowset.goto() does NOT reset the rowset.indexName property
|
|
| Andrew Shimmin 2006-03-25, 3:29 am |
| The OLH for rowset.goto() states:
"When you goto() a bookmark, the index that was in effect when the bookmark was returned is automatically activated."
This is consistent with rowset.goto() behaviour. However, after rowset.goto(), the rowset.indexName property has not been changed to reflect the current index name.
See attached turnkey.
regards, andrew
| |
| Paul Van House 2006-03-27, 9:37 am |
| In article <BxgrKn8TGHA.2320@news-server>, shimmina@connexus.net.au
says...
> The OLH for rowset.goto() states:
>
> "When you goto() a bookmark, the index that was in effect when the bookmark was returned is automatically activated."
>
> This is consistent with rowset.goto() behaviour. However, after rowset.goto(), the rowset.indexName property has not been changed to reflect the current index name.
>
> See attached turnkey.
>
> regards, andrew
I found that rowset.goto() does not work if I had changed the index key
so I always saved the "old" key in a local variable if I needed to
navigate somewhere else then restore the "old" key before issuing a
goto.
Maybe I was doing something wrong.
Paul Van House
| |
| Andrew Shimmin 2006-03-27, 8:28 pm |
| That's why your code works.
I did that until one day I read the OLH about the rowset.goto() activating the original index when the bookmark is created. I relied on it, but noticed some strange sort orders with grids and your comment in some post. I then investigated it and found the
problem.
Unfortunately I had to change dozens of functions to fix the mother ... so I created a rowset context save/restore class. Now I only have to change it in one place.
regards, andrew
Paul Van House wrote:
> In article <BxgrKn8TGHA.2320@news-server>, shimmina@connexus.net.au
> says...
>
> I found that rowset.goto() does not work if I had changed the index key
> so I always saved the "old" key in a local variable if I needed to
> navigate somewhere else then restore the "old" key before issuing a
> goto.
>
> Maybe I was doing something wrong.
>
> Paul Van House
| |
| kathy kolosky 2006-03-30, 9:32 am |
| Submitted this as QAID 5878.
Thanks, Kathy
QA
dBI
"Andrew Shimmin" <shimmina@connexus.net.au> wrote in message
news:BxgrKn8TGHA.2320@news-server...
> The OLH for rowset.goto() states:
>
> "When you goto() a bookmark, the index that was in effect when the
> bookmark was returned is automatically activated."
>
> This is consistent with rowset.goto() behaviour. However, after
> rowset.goto(), the rowset.indexName property has not been changed to
> reflect the current index name.
>
> See attached turnkey.
>
> regards, andrew
>
| |
| Andrew Shimmin 2006-04-01, 3:25 am |
| Thanks.
kathy kolosky wrote:
> Submitted this as QAID 5878.
>
> Thanks, Kathy
> QA
> dBI
>
> "Andrew Shimmin" <shimmina@connexus.net.au> wrote in message
> news:BxgrKn8TGHA.2320@news-server...
>
>
|
|
|
|
|