myPage.prg
define class myPage as page
procedure Activate
=messagebox("My Custom Activate")
endproc
enddefine
I believe, you can add/remove pages using AddObject/RemoveObject methods. Unfortunately, there is no sample in VFP6 Help (I just checked it, that's why I have such delay with the answer...)
>Nadya,
>
>How do I 'load' code into a method?
>Is there a sample somewhere?
>
>>>It appears that there is no capability to create a Page Class in VFP 7?
>>>Is it possible to emulate this?
>>>
>>>If neither is possible, how can I load code into the Activate Method after I add a page object to a framepage?
>>>
>>>TIA.
>>
>>I believe, you can create non-visual page class (e.g. in program).
If it's not broken, fix it until it is.
My Blog