Solved

User defined type as variant

Posted on 1997-11-03
2
420 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 30 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

690 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