Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object instantiated
Message
From
22/04/2003 18:06:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Object instantiated
Miscellaneous
Thread ID:
00780375
Message ID:
00780375
Views:
39
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.
Next
Reply
Map
View

Click here to load this message in the networking platform