Solved

UDT and OCX

Posted on 2002-07-05
3
226 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:sk33v3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Expert Comment

by:Brendt Hess
ID: 7132548
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
 
LVL 15

Accepted Solution

by:
ameba earned 50 total points
ID: 7132700
You put UDT declaration into class module, and class must be Public (e.g. Instancing = 2 'PublicNotCreatable)
0
 
LVL 9

Author Comment

by:sk33v3
ID: 7132990
Worked like a charm
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month3 days, 17 hours left to enroll

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question