Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object instantiated
Message
From
22/04/2003 18:15:14
 
 
To
22/04/2003 18:06:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00780375
Message ID:
00780381
Views:
12
>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
>
if type("loFolder") = "O"
   * *** do your thing here
endif
hope this helps


>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
Reply
Map
View

Click here to load this message in the networking platform