>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!!!