.Net 1.1
I have created a dll in VB. This dll sets may different properties I am only having trouble with the dataset property. The APPNVPS is initialized with the user Id and password and sets the values to be consumed by my apps.
This is the code in Vb which works correctly
APPNVPS is a dll call which returns a dataset
Gives me a runtime error <undefined value> null valueCode:Dim newObject As New APPNVPS(USERID, PASSWORD) Dim dsValues As New DataSet Dim stValue As String dsValues = newObject.AppValues If dsValues.Tables(0).Rows.Count > 0 Then MessageBox.Show("There are " & dsValues.Tables(0).Rows.Count & " records") End If The Message box show that I have 16 record C# code DataSet ds = new DataSet(); APPNVPS objApp = new APPNVPS(UserID,Password); ds = objApp.AppValues; MessageBox::Show ds.Tables[0].row.count;
I know that I am not fluent in C# but this can't be that difficult.




Reply With Quote