How to get the column count and column name from the
resultset in the database connection program?
Answer Posted / nageshbijoor@gmail.com
you can get column count using following code
totalrec = 0
DataTable datatable
datatable = ds.Tables["tablename"]
totalrec = datatable.Rows.Count
Label1.Text = datatable.Rows[currrec]["columnname"].ToString
()
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
what you mean by artifact,milestone...
Can U Explain about QTP tool from older version to latest version also its differences?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is post recovery scenario?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
What is quicktest professional?
What is checkpoints for quicktest professional (qtp)?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
To which environments does quicktest professional supports?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Can you list some technologies that support qtp?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
what is clean sweep?