Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 403177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:11:34+00:00 2026-05-12T17:11:34+00:00

I am converting an application that connects to Quality Center via the OTA API

  • 0

I am converting an application that connects to Quality Center via the OTA API from VB.net to C#. The application makes extensive use of recordsets, but I have not been able to get them to work in C#.

Specifically, I have trouble casting Command and Recordset to the correct format for C#. Everything I have tried has failed.

Following, is an VB.net example of the code that I need to convert.

Private Function GetRecSet(ByVal Qry As String, TD as TDConnection) As Recordset

        Dim Com As Command = TD.Command
        Com.CommandText = Qry
        GetRecSet = Com.Execute
        GetRecSet.First()

End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:11:35+00:00Added an answer on May 12, 2026 at 5:11 pm

    After a bit of work, and a lot of banging my head against a wall, I came up with the following solution:

    static TDAPIOLELib.Recordset GetRecSet(String Qry, TDAPIOLELib.TDConnection TD)
            {
    
                TDAPIOLELib.Command Com;
                Com = TD.Command as TDAPIOLELib.Command;
                Com.CommandText = Qry;
    
                TDAPIOLELib.Recordset RecSet = Com.Execute() as TDAPIOLELib.Recordset;
                return RecSet;
    
            }
    

    It seems to do the job.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting my Android application to use fragments. Previously, I had an activity that
I have an asp.net mvc 2 web application that connects to a WCF web
I am writing a VB.NET app that connects to a legacy application using TCP.
I currently have an MS Access application that connects to a PostgreSQL database via
I've developed an application that connects to the PayPal API with libcurl, which I
I have an application that I'm converting to Symfony/Doctrine. It currently stores a serialized
The XML String I am getting from other application is converting & to &
I'm writing my first C# web application that connects to an XML based service.
I have an application that connects fine over http. When trying https I got
I'm building an application that connects to SQL Server 2005. It currently uses Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.