>I am working on VFP 6.0.
>In that I have made a new method for a form for printing a
>Report Heading.
>If I want to call this method then I can call it with the
>command "Formname.methodname" it works perfectly.
>But I want to call this method with "On Page" method which
>gives me Error.
In addition to what John said, you can use ON KEY LABEL and directly refer to a form's PEMs if you launch the form with a NAME clause...for your case, it would be
DO FORM formname NAME formname
then
ON KEY LABEL somekey formname.methodname()
I'm thinking if it works for ON KEY, it should work with ON PAGE also...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.