Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel automation and procedures
Message
From
20/04/2018 10:39:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/04/2018 10:28:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01658838
Message ID:
01659563
Views:
52
Greg,
With all my respect, I don't suggest using properties attached to a 'global' object either. It wouldn't be much different from using a public variable.

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform