Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing an object from another object in the stack
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00406968
Message ID:
00408995
Views:
9
>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform