| Re: How to solve this function .. in QTP Hi,
There is no need to use of MID Function...we can use Abs Function to get eliminate $ symble..Here I am sending script.. tickets = window("Flight Reservation").WinEdit("Tickets:").GetROProperty("Text")
prices = window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
total = window("Flight Reservation").WinEdit("Total:").GetROProperty("text")
pavan = abs(prices)
nanda = abs(total)
If nanda = cint(tickets)*pavan Then
msgbox "True"
else
msgbox "False"
End If
int a will not work in VB script. here we use CInt(a)..
If any queries regarding this do mail @ nanda.dreddy@gmail.com |