Re: Slow VFP 8 Forms vs. 2.6 Screens
From: Fred Taylor (ftaylor_at_mvps.org!REMOVE)
Date: Mon, 22 Mar 2004 17:59:33 -0700
Ah, I see, the Political Monster of Useless Decrees strikes again. All I
can say is "You'll be sorry!". :(
Microsoft Visual FoxPro MVP
"George Shubin" <firstname.lastname@example.org> wrote in message
> Thanks, Fred. I would love to be able to refactor the app and do it right
> for VFP, but unfortunately the unrealistic completion deadline is
> politically driven, so there is barely enough time to do a plain-jane
> functional conversion. Unless there is a magic bullet to our problem, I'm
> afraid we've been set up by management for failure.
> "Fred Taylor" <email@example.com!REMOVE> wrote in message
> > "George Shubin" <firstname.lastname@example.org> wrote in message
> > news:eGT$ZEsDEHA.3236@TK2MSFTNGP09.phx.gbl...
> > > 1. Memvar initialization and data table preparation
> > Usually not a good idea. Properties of the forms for values that the
> > requires locally is a better implementation. Tables can be opened ahead
> > time, but even that can present a danger to corruption that data
> > would reduce.
> > > 2. DO FORM xyz NAME xzy
> > > DO WHILE IsForm("xyz")
> > > DOEVENTS FORCE
> > > ENDDO
> > DO FORM xyz NAME xyz
> > READ EVENTS
> > > 3. Logic to occur after form is closed
> > Code in the QueryUnload of the form?
> > > 4. RETURN
> > >
> > > 5. Form's When logic for each control
> > >
> > > 6. Form's Valid and Click logic for each control
> > Valid can still be used, but if you need to push focus to some other
> > control, you'll have to use LostFocus of the control instead.
> > > 7. Misc. required functions
> > Misc. required function can still exist in a SET PROCEDURE file, or they
> > be methods to an application object, or even just built into your own
> > level classes as needed.
> > Your best bet is to NOT fight VFP at every turn by trying to stick with
> > FPx way of doing things. The VFP object model is really quite extensive
> > flexible, as long as you don't limit your thinking to just the FPx way
> > life.
> > Fred
> > Microsoft Visual FoxPro MVP