>I have created my own class that is a child of the class PAGE.
>
>Example:
>
>DEFINE CLASS newpage AS Page
> PROCEDURE Click
> [code inside Click]
> ENDPROC
>ENDDEFINE
>
>I can't figure out how to implement it into my project. I first got errors saying I couldn't put the CLASS definition inside an EVENT. So I moved it to a startup like program... this way I could run the program and then 'do report c:\test\report.scx'.
>The program runs until it gets to the ENDDEFINE then it ends.
>
>
>Why won't it run the DO command I have in the next line?
The DEFINE CLASS code is not intended to run procedurally. Typically, if you have your class definitions in a .PRG file, you would SET PROCEDURE TO MyFile.prg and then instantiate the object with CREATEOBJECT('newpage'). Then you can call newpage.Click().
HTH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only