Hi Amol ---
Like ON KEY LABEL, ON PAGE doesn't respect object.method syntax. The trick here is to move your routine to a PROCEDURE and put a hook to it in your method, like DO myproc IN procfile. Then you can also DO proc IN procfile in the ON PAGE and it'll work fine.
>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.
>
>
>Any ideas ? ? ?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05