Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe questions
Message
 
To
17/11/1996 01:59:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012532
Message ID:
00012609
Views:
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 :)


who is that to the left of your ear?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform