Home > Archive > Programming with dBASE > December 2005 > Help, this is driving me crazy









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 Help, this is driving me crazy
Michael Vic

2005-12-05, 9:23 am

This 'problem' maybe very simple to solve, but I don't know the answer.

I have a grid. I also have a combination box that the user is allowed to choose for search.

I have it set to form.rowset.indexname = " what_ever_they_choos
e".
The index search works. The problem is if the user clicks on the grid to highlight and choose the record, this record is sorted to the top of the grid. How do I stop this from happening? I want the grid to stay where it is, and not jump around, confusing
the user.

Ken Mayer [dBVIPS]

2005-12-05, 9:23 am

Michael Vic wrote:
> This 'problem' maybe very simple to solve, but I don't know the answer.
>
> I have a grid. I also have a combination box that the user is allowed to choose for search.
>
> I have it set to form.rowset.indexname = " what_ever_they_choos
e".
> The index search works. The problem is if the user clicks on the grid to highlight and choose the record, this record is sorted to the top of the grid. How do I stop this from happening? I want the grid to stay where it is, and not jump around, confusi

ng the user.
>


Check your code to make sure you are not using a "form.rowset.first()"
after the index change.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Michael Vic

2005-12-05, 9:23 am

Ken Mayer [dBVIPS] Wrote:

> Michael Vic wrote:
sing the user.[color=darkred]
>
> Check your code to make sure you are not using a "form.rowset.first()"
> after the index change.
>
> Ken


That's weird because I don't have that coded like that. I think I know it's something to do with indexing, but what??


Ken Mayer [dBVIPS]

2005-12-05, 11:23 am

Michael Vic wrote:
> Ken Mayer [dBVIPS] Wrote:
>
>
ing the user.[color=darkred]
>
>
> That's weird because I don't have that coded like that. I think I know it's something to do with indexing, but what??


Changing the index doesn't automatically change the row pointer or do
any navigation, at least not in Plus. What version of dBASE are you
using? I seem to recall that in earlier versions of the 32-bit version
of dBASE this did occur when you changed the index, but I cannot recall
when it was changed so that navigation was not automatic.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Michael

2005-12-05, 11:23 am

> Changing the index doesn't automatically change the row pointer or do
> any navigation, at least not in Plus. What version of dBASE are you
> using? I seem to recall that in earlier versions of the 32-bit version
> of dBASE this did occur when you changed the index, but I cannot recall
> when it was changed so that navigation was not automatic.
>


Oh dear, this is not encouraging. I'm using Dbase Plus, 2.6...
My other forms do not behave this way. This only happens with this form. obviously there is something wrong in my coding that's making this happen. But I can't figure this out.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com