Solved

User defined type as variant

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

Suggested Solutions

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

679 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