Subject Re: OnNavigate
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Thu, 8 Feb 2018 13:43:51 -0800
Newsgroups dbase.getting-started

On 2/8/2018 12:47 PM, Mustansir Ghor wrote:
> Dear Mervyn
>
> Why is that in rowset_OnNavigate we use this.parent.parent and can not use form. I need to use this method else where so need to see if I can still further manipulate.


The data objects do not understand a form reference. This is because
they can be used in shared code, like data modules, and so on. A data
object could still be available in memory from a form that was closed
and removed from memory if the code was set up that way, then where you
would be? If you examine them, they do not have a parent property.

If you follow the logic:

    this = rowset
    parent = query object
    parent = form

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm