Gary,
>I am new to using application objects in VFP & I am looking at the _vfp object and would like to know how it was created and on what base Base class object is it based on?
_vfp is an internal object that just is. It'll be there in the development as well as the runtime. It's mostly there to have access to system sort of information, and you can't subclass it.
You can extend it with your own custom properties via:
addproperty( _vfp, "myprop", 7 )
? _vfp.myprop
but that has limited functionality because you can't add code.
_screen supports an AddObject() method so that you can add your own custom objects into it.
>Secondly I want to build my own Application object(partly so that I understand everything in it, partly as a learning exercise) rather than use an existing one (such as the wizards create) and I am looking for some examples of building simple but functional application objects programmatically from a Base class.
Most developers use their own "scheme" for this, some use third-party frameworks.
It is as simple as this:
goApp = createobject( "MyApp" )
? goApp.MyMethod()
define class MyApp as custom
myprop = 1
function MyMethod()
return "Hi Gary"
endfunc
enddefine