Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why doesn't this work? Scope? Non-VFP object inside a VF
Message
 
To
05/03/2001 12:42:38
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00481943
Message ID:
00481950
Views:
14
>Excel = createObject("ExObj")
>Excel.Show()
>
>
>DEFINE Class ExObj as custom
>
> ExcelObject = null
>
> Function init
> ExcelObject=createObject("Excel.Application")
> ExcelObject.Visible = .F.
>
> Function show
> ExcelObject.visible = .T.
>
>ENDDEFINE

The ExcelObject variable is scoped to the Init of your class.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform