Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel automation and procedures
Message
From
20/04/2018 10:39:32
 
 
To
20/04/2018 10:28:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01658838
Message ID:
01659562
Views:
53
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform