Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel automation and procedures
Message
De
20/04/2018 10:39:32
 
 
À
20/04/2018 10:28:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01658838
Message ID:
01659562
Vues:
54
>I agree with Cetin in that it is not a good practice to use global variables. Rather I use a property attached to _VFP system object as follows:
>
>
>ADDPROPERTY(_VFP, "oExcel", CreateObject("Excel.Application"))
>
>
>Now you can use the assignment anywhere as _VFP.oExcel

In case you didn't notice, Cetin also wrote "or a property of a public object". IOW, he recommends to NOT use your solution.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform