loClient.oRow = loRow If Not loClient.DoSomething() Then Return False End IfThe class requires this to be a datarow.
oData.oDataView.Sort = "AddDate"
The method will be called into a loop:' For each record For lnCounter = 0 To oData.nCount - 1 loRow = oData.oRows(lnCounter) ' Get the list loClient.oRow = loRow If Not loClient.DoSomething() Then Return False End If ' Do something NextAs that method was working looping against a data provider, making use of loRow, a datarow, everything was ok.
' For each record For Each loDataRowView In oData.oDataView ' Get the list loClient.oRow = loDataRowView If Not loClient.DoSomething() Then Return False End If ' Do something NextThen, of course, this would generate an error when assigning the value to loClient.oRow as a datarow object expect to receive a datarow object.