Arrays, ArrayList, Collection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cday119
    New Member
    • Mar 2008
    • 29

    Arrays, ArrayList, Collection

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

    I have an "Array" that looks like this:

    Code:
    Profile(
    Description,
    	Version
    	NumLines
    	NumAutoReduction
    	PrinterName
    Print Orientation
    PaperSize
    BadgesPerColumn
    BadgesPerRow
    HorizontalDisplacement
    VerticalDisplacement
    HorizontalSeperation
    VerticalSeperation
    Lines(
    Line1(
    	Enabled
    Reduction1(
    FontName
    FontSize
    FontBold
    CapsOnly
    FontItalic
    HorizontalDisplacement
    VerticalDisplacement
    Width
    Enabled
    )
    Reduction2()
    Reduction3()
    Reduction4()
    )
    Line2()
    Line3()
    Line4()
    )
    )
    I want it to have a dynamic size and have a key - value relationship. So I can do something like this

    Lines.Line1.Rec ution1.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(ArrayLis t.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
Working...