Yes I know what Option Strict
does and I use it quite often. My issue is stemming from my Linq
query and I can't seem to figure out how to get it from throwing up. I am wanting to get all DataRows
in a given table where a row's id equals an id I give it. Also this query works just fine without Option Strict
on a I get the rows I need, but I want to have it on.
The error: Option Strict on disallow's late binding
Here's what I have right now...
Dim cRows() As DataRow = (From cRow In MasterDataSet.Tables(1).Rows Where cRow(childTableKey) = intParID).ToArray
The error is happening underneath: cRow(childTableKey)
I know what the error mean's as well, but can't seem to figure how to stop it from seeing it as an error. I have tried casting it and such already as well...