Option Strict and Collections

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

    Option Strict and Collections

    Hi everyone,

    I have a Collection that is set up like this:

    Code:
    Lines(
      Line1(
        Reduction1(
               FontName
    	)
        Reduction2()
        Reduction3()
        Reduction4()
           )
      Line2()
      Line3()
      Line4()
    )
    When I want to get the FontName of Reduction1 of Line1 in a function I do this:
    Code:
    Public Function DisplayLines(ByVal num As Integer)
       Name = Lines.Item("Line" & lineNum).Item("Reduction" & reductionNum).Item("Font").Name
    End Function
    But with Option Strict on I get a Option Strict On dissallows late binding. My question is there a better way to do what I am trying to do.
    Thanks
Working...