?
Solved

User defined type as variant

Posted on 1997-11-03
2
Medium Priority
?
423 Views
Last Modified: 2006-11-17
I want to place structure to treeview item to get some
groupped information. Because user manual says that
is not possible to assign user defined types to variant datatype -- my question is what way to place structure to variant datatype. Or what another solution can be dome for that.
0
Comment
Question by:kostya
[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
2 Comments
 

Author Comment

by:kostya
ID: 1439576
Adjusted points to 30
0
 
LVL 2

Accepted Solution

by:
PedroMVGomes earned 90 total points
ID: 1439577
i know a easy soluction.
Basicaly you must create an array of that structure, and in the variante you maus store the array's index or a key. That way you can assign anything you what to that variant because it will be liked to the array.
To read the information you will only need to read the array at the index posiction or with the key in it.
Isted of an array you can also use a colection of a class.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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