mesg2anil
14 years agoRegular Contributor
If Syntax Issue
Hi,
I'm using below code to check if the txtamount is greater than 0 then I will pass the condition, but "if" line itself is erroring out
iexplore = .Process("iexplore", 2).Page("http://qaserver/Default.asp").document.frames.Frame("mainFrame").document.frames.Frame("ContentFrame").document.all
I'm using below code to check if the txtamount is greater than 0 then I will pass the condition, but "if" line itself is erroring out
Set iexplore = Sys.Process("iexplore", 2).Page("http://qaserver/Default.asp").document.frames.Frame("mainFrame").document.frames.Frame("ContentFrame").document.all
iexplore = .Process("iexplore", 2).Page("http://qaserver/Default.asp").document.frames.Frame("mainFrame").document.frames.Frame("ContentFrame").document.all
If iexplore.Item("txtAmount") > 0 Then ==>> Error out as 'Object doesn't support this property or method
Item("txtAmount") is an object of which I am checking the value, if the value is greater than 0 or not. What is the correct syntax?
Please suggest