
instance of class module can't see own type
Carlo: make sure you are declaring a variable for your type and not
referring to the Type name itself:
Private Type MyType
intValue as integer
strValue as String
End Type
in initialization:
Dim tmpType as MyType
tmpType.intValue = 5
tmpType.strValue = "This is a test"
This type of syntax works
t>...
Quote:
>I have declared a private type in the declarations section of a class
>module.
>When I create a new instance of it, its initialize event can't see the
type.
>I get a 'variable not defined' error. Well, it certainly is defined.
>Do initialization events occur before the declarations are evaluated?
>Or are UDTs just not allowed in class modules? They seem to be permitted
in
>form modules.
>Thanks for your help.