Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe questions
Message
From
17/11/1996 01:59:47
 
 
To
17/11/1996 00:42:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012532
Message ID:
00012534
Views:
26
>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!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform