UDT and OCX

how do you pass a User Defined Type variable through an event or through a public function. I would prefer not to have to use lset on both sides but if I have to I have to.
LVL 9
sk33v3Asked:
Who is Participating?
 
amebaConnect With a Mentor Commented:
You put UDT declaration into class module, and class must be Public (e.g. Instancing = 2 'PublicNotCreatable)
0
 
Brendt HessSenior DBACommented:
I assume that you are using Classes here.  A UDT can not be passed through a Public Class interface.  Instead, you must use Friend properties and methods to pass UDTs.

0
 
sk33v3Author Commented:
Worked like a charm
0
All Courses

From novice to tech pro — start learning today.