Esparta,
addobject() is not a valid _VFP (or application) method. _VFP is the application object, and it could be accessible from outside of VFP as an automation server.
< UPDATE >
I'm speaking about through version 7. I don't suspect that this has changed in VFP8.
>Can I use the following code in VFP8?, why no? (Get Error)
>
>
> _VFP.AddObject("oUser","custom")
>
>
>Actually I usually atach custum objects to _screen with no problem, like this
>
>
>_screen.AddObjetc("oUser","custom")
>
Steve Gibson