Index
2011-02-27 12:02Chuck Flowers : CursorAdapter Event Fire Order Question
2011-02-28 09:26Ted Roche : Re: CursorAdapter Event Fire Order Question
2011-02-28 09:43Tracy Pearson : RE: CursorAdapter Event Fire Order Question
2011-03-01 19:06Chuck Flowers : Re: CursorAdapter Event Fire Order Question
2011-03-02 08:26Rafael Copquin : Re: CursorAdapter Event Fire Order Question
Back to top
CursorAdapter Event Fire Order Question

Author: Chuck Flowers

Posted: 2011-02-27 12:02:23   Link

(from What's New in Visual FoxPro 8, page 134)

For a CursorAdapter instantiated in code, the Init event fires before all

others, as you'd expect.

But for a CursorAdapter in the DataEnvironment of a form, the event order is

different:

*

*

*Event Order For a CursorAdapter in the DataEnvironment of a form:*

DataEnvironment.OpenTables */* Is this right,

does DataEnvironment.OpenTables fire before DataEnvironment.BeforeOpenTables

?

DataEnvironment.BeforeOpenTables */* OR should this

line read as CursorAdapter.BeforeOpenTables ?

CursorAdapter.AutoOpen

CursorAdapter.BeforeCursorFill

CursorAdapter.CursorFill

CursorAdapter.AfterCursorFill

CursorAdapter.Init

DataEnvironment.Init

Thanks,

Chuck Flowers

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

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/AANLkTikdN+QDeNxvNOaqv1i2FZYfH2tKvnbVYrjfG+6X@mail.gmail.com

** 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.

©2011 Chuck Flowers
Back to top
Re: CursorAdapter Event Fire Order Question

Author: Ted Roche

Posted: 2011-02-28 09:26:44   Link

http://fox.wikis.com/wc.dll?Wiki~BeforeOpenTables and

http://books.google.com/books?id=k8fN2KMF1j4C&lpg=PA92&ots=VvN0Q2FFBW&dq=visual%20foxpro%20beforeopentables&pg=PA92#v=onepage&q&f=false

have some suggestions.

However, the absolute best way to be sure is to stick a DEBUGOUT in

each method or walk it through using event tracking to be absolutely

sure.

On Sun, Feb 27, 2011 at 12:02 PM, Chuck Flowers <flowers.chuck@gmail.com> wrote:

> DataEnvironment.OpenTables                              */*  Is this right,

> does DataEnvironment.OpenTables fire before DataEnvironment.BeforeOpenTables

> ?

> DataEnvironment.BeforeOpenTables                      */*  OR should this

> line read as CursorAdapter.BeforeOpenTables     ?

> CursorAdapter.AutoOpen

--

Ted Roche

Ted Roche & Associates, LLC

http://www.tedroche.com

_______________________________________________

Post Messages to: ProFox@leafe.com

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/AANLkTi=CdPw2YQ+Rwi_7UC9jL3wrhvF14_jtoRYJSOZC@mail.gmail.com

** 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.

©2011 Ted Roche
Back to top
RE: CursorAdapter Event Fire Order Question

Author: Tracy Pearson

Posted: 2011-02-28 09:43:23   Link

Chuck Flowers wrote on 2011-02-27:

> (from What's New in Visual FoxPro 8, page 134)

>

> For a CursorAdapter instantiated in code, the Init event fires before

> all others, as you'd expect.

>

> But for a CursorAdapter in the DataEnvironment of a form, the event

> order is different: * * *Event Order For a CursorAdapter in the

> DataEnvironment of a form:* DataEnvironment.OpenTables

> */* Is this right, does DataEnvironment.OpenTables fire

> before DataEnvironment.BeforeOpenTables ?

> DataEnvironment.BeforeOpenTables */* OR should

> this line read as CursorAdapter.BeforeOpenTables ?

> CursorAdapter.AutoOpen CursorAdapter.BeforeCursorFill

> CursorAdapter.CursorFill CursorAdapter.AfterCursorFill

> CursorAdapter.Init DataEnvironment.Init

>

>

> Thanks,

>

> Chuck Flowers

>

Chuck,

The way I would determine the firing sequence.

Build a simple form with what you need to learn.

Open the Debug window. Tools - Event Tracking. Turn everything, save mouse

movements, and run your form.

Read through the events.

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

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/000a01cbd755$da48b0a0$8eda11e0$@com

** 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.

©2011 Tracy Pearson
Back to top
Re: CursorAdapter Event Fire Order Question

Author: Chuck Flowers

Posted: 2011-03-01 19:06:47   Link

Thanks, found my copy of Hacker's Guide 7, will plow through that chapter

ASAP.

Chuck

On Mon, Feb 28, 2011 at 8:43 AM, Tracy Pearson <tracy@powerchurch.com>wrote:

> Chuck Flowers wrote on 2011-02-27:

> > (from What's New in Visual FoxPro 8, page 134)

> >

> > For a CursorAdapter instantiated in code, the Init event fires before

> > all others, as you'd expect.

> >

> > But for a CursorAdapter in the DataEnvironment of a form, the event

> > order is different: * * *Event Order For a CursorAdapter in the

> > DataEnvironment of a form:* DataEnvironment.OpenTables

> > */* Is this right, does DataEnvironment.OpenTables fire

> > before DataEnvironment.BeforeOpenTables ?

> > DataEnvironment.BeforeOpenTables */* OR should

> > this line read as CursorAdapter.BeforeOpenTables ?

> > CursorAdapter.AutoOpen CursorAdapter.BeforeCursorFill

> > CursorAdapter.CursorFill CursorAdapter.AfterCursorFill

> > CursorAdapter.Init DataEnvironment.Init

> >

> >

> > Thanks,

> >

> > Chuck Flowers

> >

>

> Chuck,

>

> The way I would determine the firing sequence.

> Build a simple form with what you need to learn.

> Open the Debug window. Tools - Event Tracking. Turn everything, save mouse

> movements, and run your form.

> Read through the events.

>

> Tracy Pearson

> PowerChurch Software

>

>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

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/AANLkTimiuKNR5WMPZBZpcuhDg-Cb+yTRTycfS35UWBc=@mail.gmail.com

** 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.

©2011 Chuck Flowers
Back to top
Re: CursorAdapter Event Fire Order Question

Author: Rafael Copquin

Posted: 2011-03-02 08:26:41   Link

I believe that OpenTables fires before BeforeOpenTables, because it

calls BeforeOpenTables.

Seems weird if you use colloquial english logic, but makes sense from

the point of view of VFP.

When the DE calls the OpenTables method, the first thing this method

does is call the BeforeOpenTables method to know whether there are

things it has to do before opening the tables, like for instance,

establish the path.

I think I read this in some of the guru's books on VFP (and I've read

them all !!)

Rafael Copquin

El 01/03/2011 21:06, Chuck Flowers escribió:

> Thanks, found my copy of Hacker's Guide 7, will plow through that chapter

> ASAP.

>

> Chuck

>

>

> On Mon, Feb 28, 2011 at 8:43 AM, Tracy Pearson<tracy@powerchurch.com>wrote:

>

>> Chuck Flowers wrote on 2011-02-27:

>>> (from What's New in Visual FoxPro 8, page 134)

>>>

>>> For a CursorAdapter instantiated in code, the Init event fires before

>>> all others, as you'd expect.

>>>

>>> But for a CursorAdapter in the DataEnvironment of a form, the event

>>> order is different: * * *Event Order For a CursorAdapter in the

>>> DataEnvironment of a form:* DataEnvironment.OpenTables

>>> */* Is this right, does DataEnvironment.OpenTables fire

>>> before DataEnvironment.BeforeOpenTables ?

>>> DataEnvironment.BeforeOpenTables */* OR should

>>> this line read as CursorAdapter.BeforeOpenTables ?

>>> CursorAdapter.AutoOpen CursorAdapter.BeforeCursorFill

>>> CursorAdapter.CursorFill CursorAdapter.AfterCursorFill

>>> CursorAdapter.Init DataEnvironment.Init

>>>

>>>

>>> Thanks,

>>>

>>> Chuck Flowers

>>>

>> Chuck,

>>

>> The way I would determine the firing sequence.

>> Build a simple form with what you need to learn.

>> Open the Debug window. Tools - Event Tracking. Turn everything, save mouse

>> movements, and run your form.

>> Read through the events.

>>

>> Tracy Pearson

>> PowerChurch Software

>>

>>

>>

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

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/4D6E4591.7010907@ciudad.com.ar

** 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.

©2011 Rafael Copquin