
Passing dynamic array of custom type to form method from another form
hi,
i defined a public custom type in a module like this:
public type mytype
a as integer
b as string
end type
and a public form method to be called from another form like this:
public sub mymethod(a() as mytype)
end sub
the compiler does not like this situation and issues an error:
"Only public user defined types defined in public object modules can be
used as parameters or return types for public procedures of class
modules or as fields of public user defined types"
i understand the importance of this error as of encapsulation but i
don't get why this code generates this error. as the type is public,
then the module is not public i suppose... how do i get my module to be
public or what else is the problem? thanks.
Sent via Deja.com http://www.*-*-*.com/
Before you buy.