Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object instantiated
Message
De
22/04/2003 18:11:42
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
22/04/2003 18:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00780375
Message ID:
00780380
Vues:
9
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform