Hi Jyothi,

See below.

*For your 1st question*:
Str="54321"
lString=len(Str)
For i=1 to lString
    print Str
    Str=left(Str,lString-i)
Next

*For your 2nd question*:
Step 1: Fetch the value from your Excel File(which needs bit of coding)
Ste p 2: Use below approach
num=b().p().webtable().getrowithcelltext("search value")
if num>0 then
 print "Value found in WebTable"
else
 print "Value not found in WebTable"
end if

*For your 3rd question*:
Function add(a,b,c)
   add=a+b+c
End Function
print add(2,3,5)

Thanks
Uday
QTP \ UFT Videos <http://www.youtube.com/user/AnemUday/videos>


On Friday, 2 August 2013 11:02:23 UTC+5:30, Jyothi wrote:
>
> Dear Experts, 
> Please answer the below given questions ,
>
> 1)      Write a script for triangle reverse
>
> *Output Should Be:*
>
> 54321
>
> 5432
>
> 543
>
> 54
>
> 5 
>
> 2)      I want VBscript to compare XL file contains with data and display 
> data in web table
>
> 3)      Want VBScript function to add 3 numbers and call them
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to