Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing an object from another object in the stack
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00406968
Message ID:
00408995
Vues:
12
>The last shouldn't be there!
>
dim oApp as BM_App
>set oApp = New BM_App
>
>oApp.SomeProp = "Hello"
That's what I thought. So there is no way to accomplish what I need.

The BM_App class looks something like:
Public oAcad AS AcadApplication

public sub Connect()
   set oAcad = GetObject(, "Autocad.Application")
end sub

public sub ShowFormWiz
   dim oForm as frmWiz
   Set oForm = new frmWiz

   oForm.show vbModal
endsub
Somehow I need frmWiz to be able to access the oAcad var in BM_App. I had thought making it public would allow that but I get an error.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform