So I'm attempting to create a class to use, but I want to create it straight in code rather than using the VFP Visual tools in VFP 6. I am not making a visual application. Is there a way to do this? I've attempted to create my class inside a prg, and to start I went with Ye Olde "Hello, World!" class
Will this work if written in a .prg file? How can I create an instance of this class within another prg, or should I be creating this as a .h file in C and #including it to use, and if so, I still am unsure of how to create the instance of the class.
Thanks!
Code:
define class MyClass AS Custom
function MyFunction()
? 'Hello, World!'
endfunc
enddef
Will this work if written in a .prg file? How can I create an instance of this class within another prg, or should I be creating this as a .h file in C and #including it to use, and if so, I still am unsure of how to create the instance of the class.
Thanks!