[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

User defined type as variant

Posted on 1997-11-03
2
Medium Priority
?
427 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
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…
Suggested Courses

649 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