473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Arrays, ArrayList, Collection

29
I need a little help deciding on what class to use.

I have an "Array" that looks like this:

Expand|Select|Wrap|Line Numbers
  1. Profile(
  2. Description,
  3.     Version
  4.     NumLines
  5.     NumAutoReduction
  6.     PrinterName
  7. Print Orientation
  8. PaperSize
  9. BadgesPerColumn
  10. BadgesPerRow
  11. HorizontalDisplacement
  12. VerticalDisplacement
  13. HorizontalSeperation
  14. VerticalSeperation
  15. Lines(
  16. Line1(
  17.     Enabled
  18. Reduction1(
  19. FontName
  20. FontSize
  21. FontBold
  22. CapsOnly
  23. FontItalic
  24. HorizontalDisplacement
  25. VerticalDisplacement
  26. Width
  27. Enabled
  28. )
  29. Reduction2()
  30. Reduction3()
  31. Reduction4()
  32. )
  33. Line2()
  34. Line3()
  35. Line4()
  36. )
  37. )
  38.  
I want it to have a dynamic size and have a key - value relationship. So I can do something like this

Lines.Line1.Recution1.Width = 22

What would be the best class. I am thinking ArrayList but I dont know how to add the Key Value relationship. I want something like this

ArrayList.add("22", "Width")
msgbox(ArrayList.Width)

Can someone shead some light on this. Its been about 4 years since I've done any VB programming and that was 6.0
Apr 10 '08 #1
0 590

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Dan | last post by:
Given some object that I define as: class myItem { public string szItemName = ""; public string szItemValue = ""; public string szOrderNumber = "" }
10
by: gregbacchus | last post by:
Can someone please help me and tell my why the following code is not working, and hopefully how to get it working? What I am trying to do is make a serialization surrogate that stores, amongst...
1
by: Macin | last post by:
Hi, I need to create a collection of 2 dimensional arrays. How can I do this? What type of collection? And the second question would be, how can I then display all of the small arrays at once...
0
by: hazz | last post by:
i have an array (or collection if necessary) of Customers with CustomerID and several properties. For each of these Customers I will have a one to many relationship with Customer products....
11
by: Boni | last post by:
Dear all, currently I only found a possibility to create for each type it's own typed array. I am sick to create for each of my types a separate array class. In C++ there are so called templates:...
1
by: jg | last post by:
Im not a beginner in vb.net, but I never asked myself what is the difference between folowing lines of code: 1.)You add a object to an array/arraylist/collection (lets take arraylists) ...
18
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
4
by: mom_newbie | last post by:
Hello all, I want to perform the following task: 1. Create an array 2. Fill it up (number of elements unknown in advance) 3. Iterate through it using For Each loop (cannot do this in the in...
1
by: Rob Griffiths | last post by:
Can anyone explain to me the difference between an element type and a component type? In the java literature, arrays are said to have component types, whereas collections from the Collections...
3
by: Zenon | last post by:
I have a function which returns array of structs. I need to create a collection of those arrays and thought that an ArrayList would be a good way to do this since the count is variable. The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.