
Class Module / User Defined Type
I am having a problem with User Defined Types in a class module ...
My code is:
'---------- In a Plain MODULE --------------
Public Type ServerIDType
UnixSystemName As String
UnixVirtualIP As String
End Type
Public Type UserJobType
UnixUserID As String
UnixUserPassword As String
End Type
'---------------------------------------
'---------- In a CLASS
MODULE --------------------------------------------------------
Public Property Get ServerIDData(ServerID As String) As ServerIDType
ServerIDData = ServerIDInfo(ServerID)
End Property
Public Property Get UserJobData(UserName As String, JobName As String) As
UserJobType
UserJobData = UserJobInfo(UserName, JobName)
End Property
'---------------------------------------------------------------------------
----------
The Compile error message is:
"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"
Anyone have any ideas on how to correct this problem ...?
Thanks,
Rod Madden