Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid class library - how to fix?
Message
De
12/10/1999 10:43:22
 
 
À
12/10/1999 10:29:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00275327
Message ID:
00275429
Vues:
18
>OK, I've moved a step further - I've figured out how to get my new class visible (set classlib did the trick)
>
>Be that as it may, a major point in doing this in the first place was to try to follow Jim Booth's advice (et al) that I should declare private variables rather than public and that these should be in the startup prog. This much I've done and it works.
>
>However, the next step was to set up global properties and methods in the global application object so that I can refer to them throughout the app.
>
>The question is, how do I refer to them. I've tried it in the form 'myGlobal.propertyname' and it fails with 'alias myGlobal not found' so what form should I be using? and when I want to call a method, can I just use 'myGlobal.method()'?
>
>Harry

If "myGlobal" is the classname, you need to replace it with a reference to the object.
eg.  oGlobal = newobject("myGlobal", "myVCX")
     oGlobal.Property = blah
     oGlobal.Method()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform