Sponsored Ad

Wednesday, October 20, 2010

How to get Array Upper bound in QTP

Steps to write Upper bound program VBScript:

1. use UBound function to get upper bound (maximum dimension) of array.

2. use LBound function to get lower bound of array.

Upper bound VBScript code in QTP:

<html>
<body>
<script type="text/vbscript">

site = Array("CsharpTalk.com", "TestingWiz.com")
msgbox UBound(site)

</script>
</body>
</html>

Output:

How to get Array Upper bound in QTP

Where to Run This Program:

1. This VBScript Program code either you can use in QTP editor  (code between <script> and </script> tags ) and run it.

2. Write in Notepad, save with .htm extension and run on internet explorer.

0 comments:

Post a Comment

Sponsored Ad

Development Updates

Tech Updates