If i entered 2 columns and 4 rows inputs in DDT Like Mango
fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q
is How to get the 2nd column value for corresponding 1
column input in 3rd row ie, ( i need to get "veget" in
messge box @ run time
Answers were Sorted based on User's Feedback
Answer / satya
strCnt=DataTable.getRowsCount
For i=1 to strCnt
datatable.SetCurrentRow(i)
x=datatable.Value("A")
datatable("c")=x
Next
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ratna
datatable.setcurrentrow(3)
x=datatable.value(2,1)
'datatable.value(2,1) where 2 is column name and 1 is sheet
no. ie., 1 is for global sheet
msgbox x
'output is veget
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / saff
i= inputbox "enter ur string" # say brinjal
r=datatable.getrowcount #get row count
for i=1 to r #loop till the end of the row
datatable.setcurrentrow(i)
aa=datatable.(a ,dtglobalsheet) # column 1 value into aa
if instr(aa,i,1)=1 #compare the strings
bb=datatable(b,dtglobalsheet)
msgbox bb
exit
else
i=i+1
next
| Is This Answer Correct ? | 0 Yes | 1 No |
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do
What are the limitations in using Virtual objects?
what is the silent mode in WR?
what are build and version plz explain why nomber changes in build and version?
Java add-in is need to work on java oriented project ?
What is the difference between wait and synchronization point?
what is the Exact Meaning of Environment Variables?
describe some problems that u had with automating testing tool?
What is qtpro? What is quick test pro? What is a quick test professional?
How to load an object to a object repository at RUN TIME ?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..