Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Explain how you can find length of array in QTP?
Home
QuickTest Professional (QTP)
Explain how you can find length of array in QTP?
0
votes
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
Explain how you can find length of array in QTP?
#qtp-length-array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Apr 25, 2020
by
SakshiSharma
The code to find the length of array in QTP is
print (ubound(arr)+1)
Ubound returns the last index in array- so length of array will be +1. This will be total number of elements in array
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How to find array size in QTP?
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
#qtp-array-size
0
votes
Q: Explain how you can find the absolute value of the number in QTP?
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
#qtp-absolute-value
0
votes
Q: How do I find the length of an array in C/C-PlusPlus
asked
Nov 24, 2020
in
C Plus Plus
by
sharadyadav1986
#array-length
#length-of-array
0
votes
Q: How to find the length of an array in java?
asked
Oct 19, 2020
in
JAVA
by
rahuljain1
#length-of-an-array
#length-array-in-java
#java-length-of-array
Java-questions-answers
+1
vote
Q: How to find Operating system information using the QTP script?
asked
Jan 14, 2020
in
QuickTest Professional (QTP)
by
GeorgeBell
0
votes
Q: How to define array in QTP?
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
#qtp-array
0
votes
Q: Explain how you can delete excel file in QTP?
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
#qtp-delete-excel-file
0
votes
Q: Explain how you can replace string in QTP?
asked
Apr 25, 2020
in
QuickTest Professional (QTP)
by
Robindeniel
#qtp-string
+1
vote
Q: How to perform Cross platform testing and Cross browser testing using QTP? Can u explain giving some example?
asked
Apr 12, 2020
in
QuickTest Professional (QTP)
by
amita rallin
#qtp-cross-platform
+1
vote
Q: Without using both the record and system utility script, how can you open a notepad window in QTP?
asked
Sep 12, 2020
in
QuickTest Professional (QTP)
by
JackTerrance
#qtp
...