Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: JUICE HOWARD
  Where is JUICE HOWARD?
 NEWARK
 New Jersey - United States
 JUICE HOWARD
 To: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 Tags
Subject: RE: Newbee-disable and enable a page
Thread ID: 33443 Message ID: 33679 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Monday, December 01, 2003 7:17:13 PM         
   


> Try to debug to see whether there are proper table names, values, etc. as expected.
>
> Check for values :
>
> hcfa1500.payername2 and hcfa1500.payerid2
>
> before IF, and for:
>
> ThisFormSet.Entryform1.PageFrame1.Page5.Enabled
>
> immediately after ENDIF.
>
>
> > I'm trying to have a page enable or disable using the valid event on page 4.The page that is enable or disable is on page 5. The page should disable if the fields (fields payername2 and payerid2 on page 4) are deleted or empty. When data is enter in two fields (payername2 and payerid2) page should be enable.
> >
> > I use the following code without success:
> >
> > IF !EMPTY(hcfa1500.payername2) .AND. !EMPTY(hcfa1500.payerid2)
> > ThisFormSet.Entryform1.PageFrame1.Page5.Enabled=.T.
> > ELSE
> > ThisFormSet.Entryform1.PageFrame1.Page5.Enabled=.F.
> > ENDIF
> >
> >
> > ThisFormSet.Set_Disable
> >
> > Any help would be appreciated

Thanks for all your help.


ENTIRE THREAD

Newbee-disable and enable a page Posted by JUICE HOWARD @ 11/26/2003 8:10:33 PM
RE: Newbee-disable and enable a page Posted by Yuri Rubinov @ 11/26/2003 8:59:33 PM
RE: Newbee-disable and enable a page Posted by JUICE HOWARD @ 12/1/2003 7:17:13 PM