Welcome, Guest
Username: Password: Remember me
This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
  • Page:
  • 1

TOPIC:

Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource 29 Sep 2021 05:27 #19740

  • elibrighton
  • elibrighton's Avatar
  • Topic Author


  • Posts: 6
  • Hi,
    I'm using version 5.0.4.0 of Xs2Ado in an XSharp project using the Vulcan dialect. I'm getting the following exception when passing a Command object for the uSource parameter to the AdoRecordSet:Open() method.

    'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.'
    LOCAL oCommand AS AdoCommand
    LOCAL oRs AS AdoRecordSet
    ...
    oCmd := AdoCommand{}
    oCmd:ActiveConnection := oConn
    oCmd:CommandText := "SomeStoredProc"
    oCmd:CommandType := AdCmdStoredProc
    oRS := AdoRecordSet{}
    oRs:Open(oCmd, Nil, adOpenForwardOnly, adLockReadOnly, adCmdStoredProc)
    
    // Exception thrown

    However, this same code worked in Vulcan.NET. I believe the Command object is valid because the expected AdoRecordSet is returned when using the AdoCommand:Execute() method for the same Command object. E.g.
    oRs := oCmd:Execute(NIL,NIL,NIL)

    Could you please help me understand why this is not working?

    Please Log in or Create an account to join the conversation.

    Last edit: by elibrighton.

    Xs2Ado AdoRecordSet:Open() exception when using Command object for uSource 29 Sep 2021 13:55 #19741

    • robert
    • robert's Avatar


  • Posts: 2350
  • Eli,
    Can you mail me an example for this and the other problem you reported?

    Robert at Xsharp dot Eu
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1