Re: public object modules?
Re: public object modules?
Where are you trying to put the Public Sub?
Re: public object modules?
Where are you trying to put the Public Sub? ...in my "program" That is, I click on the form, and that is where all of my other code is located.
Where should I place my Type definition? Any example would be helpful
Re: public object modules?
If you want to pass a complete array to a sub you have to declare your parameter accordingly:
Code:
Public Sub MySub(intAbc as Integer, FakeType() as DynaData)
'This allows later
MySub 5, RadBut
'or
Call MySub(5, RadBut)
'which is the same
Re: public object modules?
If you move the Public Sub (declared as WoF suggests) to the .bas module, it should work. Then you can call the sub from any form in your program.
Re: public object modules?
I changed the type of sub I was having trouble with from public to private & POOF ...all the compiler errors went away & it works just fine!