In Datatable having the data like this
S.no Name Address
1 raj hyderabad
2 suresh Mumbai
3 shyam chennai
4 dev banglore
i want to get the shyam row id & column id using scipting
i.e 3,3
Answer Posted / pravati
rowcount=Datatable.getsheet(id).rowcount
for i=1 to rowcount
colmncount=Datatable.getsheet(id).getparametercount
for j=1 to colmncount
Datatable.getsheet(id).setcurrentrow(i)
if Datatable.value(j,shetid)="shyam"
then msgbox i
msgbox j
exit for
end if
next
if Datatable.value(j,shetid)="shyam" then
exit for
end if
next
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
what is clean sweep?
How many types of parameters are there?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
Is it possible to merge two object repository files in qtp?
What is Curd testing?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
if our qtp vb Script may be Currepted then What we want do?
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?