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
有帮助吗?

解决方案

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

myTableData.Rows(rowNumber)(columnNumber) 

or

myTableData.Rows(rowNumber).Item(columnNumber)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top