Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't this work? Scope? Non-VFP object inside a VF
Message
 
À
05/03/2001 12:42:38
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00481943
Message ID:
00481950
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform