> Dear sirs
>
> Have a form on which i want to put various controls On first entry want all controls disabled but data visible Control then passes to an overlay form which checks whether fresh input is appropriate or not If amendment is required then all controls are enabled otherwise both forms clear At this stage cannot get the form to re-enable for some reason Have put this up to you before but it still does not work
>
> Also have a problem on lostfocus
>
> Any help is appreciated
>
>
> procedure init
> if(query="N") &&query is outside public variable
> this.enabled=false
> do yesnoobj with "Amend?",query &&overlay which checks for new input
> if(query="N")
> clear events
> else
> this.refresh &&recalls the control and should enable it
> endif
> endif
> endproc
> procedure lostfocus &&this procedure fails to identify query and fails
> do yesnoobj with "Amend?",query
> etc
> endproc
>
>
> Couple of thoughts does this.refresh reinitialise the control? Because lostfocus is one of the latter events does this cause the problem with my variable
>
> Regards len cockram
I don't follow exactly what you're trying to do, but a REFRESH doesn't re-enable your controls. You have to set this.Enabled = .T.
---
www.foxite.com - The Home of the Visual FoxPro Experts