Search found 3 matches

by ahope
Tue Apr 19, 2022 6:37 am
Forum: 3rd party products
Topic: Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource
Replies: 9
Views: 3043

Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource

<r>the unit test fails with <CODE><s>[code]</s>new __Usual(adoCommand)<e>[/code]</e></CODE> but passes with <CODE><s>[code]</s>new __Usual(adoCommand.Interface)<e>[/code]</e></CODE> I could also reproduce the error with a wrapper class that implemented the ADODB.Command interface, and not using any ...
by ahope
Mon Apr 18, 2022 10:39 pm
Forum: 3rd party products
Topic: Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource
Replies: 9
Views: 3043

Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource

XSC.exe
Assembly Version 2.10.0.0
FileVersion 2.10.0.3
I reproduced using a c# unit test so i don't believe the compiler was the issue there. i updated the original post with my test.
by ahope
Wed Apr 13, 2022 10:43 pm
Forum: 3rd party products
Topic: Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource
Replies: 9
Views: 3043

Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource

<r>The problem here is that <I><s>[i]</s>oRs:Open<e>[/i]</e></I> expects a <I><s>[i]</s>ADODB.Command<e>[/i]</e></I> object as the first parameter. No derived classes seem to suffice.<br/> Hence the error: <I><s>[i]</s>'Arguments are of the <B><s>[b]</s>wrong type<e>[/b]</e></B>, are out of ...