Librería C# para usar en VO 28
Posted: Thu Apr 06, 2023 8:36 pm
Hello.
We are designing a C# library, exposed to COM, for handling SQL, to be used in VO 28 SP3.
We made the functions PG_Connect() and PG_Select(). This function returns a DataSet object.
At VO we use it for Automation.
After making the connection, we call the PG_Select() function which returns a dataset:
LOCAL oTable AS OBJECT
IF !oGVar:oSPI_SQL:PG_Select("Select * from customer order by razsoc_cli") //FALSE without error
oTable := oGVar:oSPI_SQL:Data
WILL END IF
SELF:oDCbBrowser1:use(oTable)
When trying to read the dataset returned by the library, with the bBrowser, the following error appears:
Error Code 16 [NO EXPORTED VARIABLE]
SubSystem: BASE
Function: IVAGET
Argument:USED
Is it possible to read, from VO, the data set returned by the library?
What should I take into account in the library so that VO can read a data set?
Thank you so much.
Gerardo.
We are designing a C# library, exposed to COM, for handling SQL, to be used in VO 28 SP3.
We made the functions PG_Connect() and PG_Select(). This function returns a DataSet object.
At VO we use it for Automation.
After making the connection, we call the PG_Select() function which returns a dataset:
LOCAL oTable AS OBJECT
IF !oGVar:oSPI_SQL:PG_Select("Select * from customer order by razsoc_cli") //FALSE without error
oTable := oGVar:oSPI_SQL:Data
WILL END IF
SELF:oDCbBrowser1:use(oTable)
When trying to read the dataset returned by the library, with the bBrowser, the following error appears:
Error Code 16 [NO EXPORTED VARIABLE]
SubSystem: BASE
Function: IVAGET
Argument:USED
Is it possible to read, from VO, the data set returned by the library?
What should I take into account in the library so that VO can read a data set?
Thank you so much.
Gerardo.