Hello I set up a "type", included in my .bas module...seems to work fine:
In my main form General Declarations I do:Code:Public Type DynaData FramePar As Integer VIndex As Integer EEPloc As Integer NoRespOK As Boolean End Type
I use this without problem in various routines & various calculations. However I need to pass this type to a sub (as well as similar types to the same sub, which is why I want to create a sub in the first place)Code:Dim RadBut(200) As DynaData
such as:Code:call MYSub(123, RadBut() ) 'should it be plain RadBut or RadBut()?
...however here it gives a compiler error sayingCode:Public Sub MySub(intAbc as Integer, FakeType as DynaData)
"only public user defined types defined in public object modules can be used as parameters..... "
Ok so where should I put my type definition (what IS a public object module?) or how do I make one of my private modules public?




Reply With Quote