PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → datasource,dataset .net dll assembly
datasource,dataset .net dll assembly
Started by TODD ( Beaulieu of A, Jan., 30 2013 7:50 PM - No answer
Registered member
16 messages
Posted on January, 30 2013 - 7:50 PM
Hello all,
I am trying to load a datasource in webdev17 by calling a .Net assembly that we have in our system. When The program returns from the .Net dll I receive a "incompatable Type" error. It seems that the dataset defined in the .Net dll does not want to be placed back in an rs defined as datasource. I get the same error if I define rs as a dataset and pass it to the .Net assembly..incompatable type. Below is the code...What am I missing here? We have manu .Net dll that perform functions that return data sets that I would like to utilize. Thank you very much, Todd
WebDev Code:

rs is Data Source
MYOBJ is RetrieveSalesman.RetrieveSalesman
rs = MYOBJ.RetrieveDVPList(gcstrConnString_Beau)

HReadFirst(rs)
WHILE NOT HOut(rs)
DDNAME is string = rs.S6DNUM +"-" + rs.S6DNAM
ListAdd(ddlDivisional, DDNAME)

HReadNext(rs)
END



.net assembly code:

Public Function RetrieveDVPList(ByVal strConnString_Beau As String) As DataSet
Dim rs As DataSet
Dim qry As String = "Select Distinct S6DNAM, S6DNUM From SIP260 Order By S6DNUM"
Return ExecuteDataset(strConnString_Beau, CommandType.Text, qry)

End Function