>>>If GetObject() fails (VFP 6.0) is there any other way to get an object of the running application?
>>>Thanks Mark
>>
>>It seems you want to get a reference to VFP itself. Some things you can do with the global variable Application. This seems to be identical to variable _VFP.
>>
>>Hilmar.
>
>Not sure what are you talking about. I need to get a handle of non VFP appl.
>Thanks Mark
Mark,
If GETOBJECT() fails (meaning the VFP native command, not the API call), it simply means that the associated application isn't running and CREATEOBJECT() is required. If that fails, then the app probably isn't installed. With Office 2K (and probably XP as well), GETOBJECT() is pretty much pointless. With other applications (Lotus SmartSuite '97, for example), I check via my Is_Run32 function to see if the application is running, and if so, issue GETOBJECT().
hth,
George
Ubi caritas et amor, deus ibi est