Solved

User defined type as variant

Posted on 1997-11-03
2
409 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
Comment Utility
Adjusted points to 30
0
 
LVL 2

Accepted Solution

by:
PedroMVGomes earned 30 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to delete range 4 54
Updates not working for MS Windows 7 12 122
VBA filters 2 36
using web browser with BING 40 80
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now