Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From page to page
Message
 
À
23/07/1999 09:14:26
Roy Bussard
Prosoft Technologies, Inc.
Bethel Park, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00245274
Message ID:
00245550
Vues:
17
>I'm am using a pageframe with two pages. The first page has item request information and the second contains a grid that I use to enter account distribution into. I want to be able to force the user to put in an account distribution that equals 100%. I have a method for checking the total distribution on the form and a property on the form that holds .t./.f. based on the result of the method. My problem is trying to force the user to remain on page 2 until the distribution is 100%. I tried using the deactivate event, but that only fires when the user clicks on the next page (not when the user clicks off the pageframe altogether). Even when the user clicks on the next page and the deactivate fires, I can't seem to force the user back onto the distribution page. Because I'm using a grid to enter the distribution, I have no LostFocus event on the grid, page, or pageframe to work with. What should I do?


Try this in the Activate() of page1:

IF ! ThisForm.ChangeOk
This.Parent.Pages(2).Activate()
NODEFAULT
ENDIF
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform