Question

I was wonder how to convert this line of code to vb.net. I changed the dataset to recordset and it is indeed a function. When i convert It gave me this error. The dataset is filled with values from Database Its just that this "!" is the main error can anyone tell me what that means in vb6? The error that came out was"Dataset Cannot Be index because there is no default Properties"

             'getting values from database procedure


         If priRecordSet!CodeStatus Then   
   IfCodeStatus = True
Else
    IFCodeStatus = False
End If

Return IfCodeStatus
Was it helpful?

Solution

To access a particular column value of a particular row, use

myTableData.Rows(rowNumber)(columnNumber) 

or

myTableData.Rows(rowNumber).Item(columnNumber)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top