Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: len cockram
  Where is len cockram?
 len cockram
Subject: problem
Thread ID: 22191 Message ID: 22191 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Forms
Date: Friday, April 11, 2003 10:34:14 AM         

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
      do yesnoobj with "Amend?",query &&overlay which checks for new input
         clear events
         this.refresh &&recalls the control and should enable it
procedure lostfocus &&this procedure fails to identify query and fails
   do yesnoobj with "Amend?",query

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


problem Posted by len cockram @ 4/11/2003 10:34:14 AM
RE: problem Posted by Michael Gill @ 4/14/2003 4:30:34 PM
RE: problem Posted by len cockram @ 4/15/2003 5:24:12 AM