Re: Form and exclusive open by EdJames
EdJames
Tue Nov 29 08:37:15 CST 2005
Thanks for all the responses, I'll try the bindcontrols property and see the
interaction (delay) on the form. I wonder why Microsoft limits passing
parameters to forms in the init event as opposed to the load event also, so
many events/ methods fire before the init event in the form.
"Carsten Bonde" wrote:
> Ed,
>
> next to the other good answers, here is another idea. Have you looked at the
> property "Bindcontrols"?
> Setting it to .F., it prevents VFP to bind the tables with the controls till
> you sets it to .T.
> At the end of init (or the maintaining-job) say:
> THISFORM.BindControls=.T.
> (admitted - the idea is untested)
>
> --
> Cheers
> Carsten
> _______________________________
>
> "Ed James" <EdJames@discussions.microsoft.com> schrieb im Newsbeitrag
> news:1658DF1D-8A7F-4678-BDEC-2373C3ABF826@microsoft.com...
> >I have a general form to gather range criteria for reports and updates.
> > Sometimes I want to open a file exclusive (for update purposes). I thought
> > maybe I could pass a tlexclusive parameter to determine the exclusiveness.
> > I
> > have controls that are linked to tables (if these control's init event
> > fires
> > before the table is open, an error is generated). Here's my question, if
> > parameters can only be passed to the form's init event, and the controls
> > are
> > initialized before the form; is there a way, based on a parameter to open
> > tables in the dataenvironment exclusively or non-exclusively and before
> > the
> > controls init events get fired. I have ways to work around this, but any
> > ideas could lead to a better solution.
> >
> > Thanks in advance,
>
>
>