Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getobject
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00536461
Message ID:
00536492
Views:
8
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform