Vincent Teachout <[email protected]> wrote:
>I have code in a grid header click() that indexes a cursor. the cursor
>
>doesn't exist until it's created by the page activate() method.
>(called
>there because other pages can change one of the underlying parameters.
>
>The first time I view the page, the headers work perfectly. If the
>page
>activate is called again, header clicks are seemingly ignored. A set
>step on or "Hi world!" Messagebox in the click() method fires the first
>
>time, through, but on second call of page activate() never fires.
>
>The activate code does a new sql query to build the cursor the grid is
>on, record source is breifly set to "" (or space(0)) and then set to
>cursor name.
>
>Would that destroy/disable the click method? Has anyone heard of
>anything like this?
>
It is the old behavior of the cursor being recreated after it is set. It
destroys all the objects in the grid. It is better to create a blank cursor on
the form load event. The select into a cursor which you will append from.
Append from dbf("selectresults")
--
Tracy
Sent from my Android phone with K-9 Mail.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.