Trying to read from generic IList but getting "Option Strict On disallows late binding" restriction

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    Trying to read from generic IList but getting "Option Strict On disallows late binding" restriction

    Hi,

    I'm wanting to iterate over a generic IList, but the code won't compile
    because the blue sqiggle line under:

    _DataRow("Secur ityFunctionName ") = _IList(i).Secur ityFunctionName ;

    sez "Option Strict On disallows late binding"

    If I comment out the line and get to that place in the debugger, I can pull
    the value in the Innediate window and it works. But I can't get around the
    late binding restriction.

    I've tried using ctype but that didn't seem to help.

    Any feedback greatly appreciated.

    Ron

Working...