Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Excel from within FoxPro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00120781
Message ID:
00120808
Vues:
21
Hey Crooner,

>? type('oxcel.application')='O'

This code is not foolproof. Consider this:

o = createobject("excel.application")
?type("o.application.name") && "C"
o = null
?type("o") && still evaluates to "O"
?type("o.application.name") && "U"

Best to check for data type of the Name Property. Or combine things like this:

!isnull(o) and type("o") = "O"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform