Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object instantiated
Message
From
22/04/2003 18:11:42
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
22/04/2003 18:06:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00780375
Message ID:
00780380
Views:
8
Tyler
loOutlook = CREATEOBJECT("Outlook.Application")
if vartype(nvl(loOutlook,"")) = "O"
 * do stuff here. 
endif 
>How do I check if an object has been created?
>
>loOutlook = CREATEOBJECT("Outlook.Application")
>
>*Get the MAPI namespace and find the contacts folder
>loNamespace = loOutlook.GetNameSpace("MAPI")
>loFolder = loNameSpace.PickFolder
>
>The Pickfolder allows for the selection of a folder in Outlook, but if the user presses cancel, loFolder doesn't become an object, so i want to check if loFolder has been created before doing anything else.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform