Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe questions
Message
De
17/11/1996 01:59:47
 
 
À
17/11/1996 00:42:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00012532
Message ID:
00012534
Vues:
30
>How Can I stopping a page change if the user , for example , typed an
>incorrect
>data and want change page ?
>Thanks
>Paolo

Create a custom property for the form that will hold the value
corresponding to the page number that the user was initially allowed
to access (let's say .OldPageNo) In the Click and DblClick methods of
the pages perform the call to the custom method of the form (let's
say .ValidateEntry) and pass 'This' as an argument:
--- This.Parent.Parent.ValidateEntry(This)
In the ValidateEntry method have the following:

--- Parameter m_Page
--- If != .T.
------ m_Page.Parent.ActivePage = This.OldPageNo
--- Else
------ This.OldPageNo = m_Page.PageOrder
--- EndIf

This should do the trick :)
Some things are better be left unknown...NOT!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform