Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Null value of the object
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi

I am working on verifying the value of the object which is null.

The code as below:

Code:
gPostPrice = Browser("Market Reports - Price").Page("Market Reports - Price").WebEdit("priceEntry.priceEntryLines[3].poste").GetROProperty("value")
msgbox gPostPrice
If IsNull(gPostPrice)  Then
msgbox("entering if")
Else
msgbox("entering else")
End If

The value of the object is BLANK so I considered as Null (which I may be wrong)

Now, when I put the if condition, the msgbox with "entering else" is displayed.

What am I doing wrong? Please help..........


Attached Files
.doc   QTP Question.doc (Size: 55 KB / Downloads: 91)
Reply


Messages In This Thread
Null value of the object - by swapna_gupta08 - 06-30-2009, 04:12 AM
RE: Null value of the object - by QTPian - 06-30-2009, 12:21 PM
RE: Null value of the object - by supputuri - 07-08-2009, 07:04 PM
RE: Null value of the object - by pun555 - 02-20-2012, 11:54 PM
RE: Null value of the object - by inborntester - 02-21-2012, 11:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to remove null values in array venkatesh9032 0 2,887 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  GetRoProperties("enabled") returns null? RandomGrin 3 7,416 02-28-2013, 11:27 PM
Last Post: RandomGrin
  getElementByid("myObhectId") return null??? qtptester 3 7,095 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  Blank(null) cells within Datatable cocojava 1 5,519 12-20-2010, 07:59 PM
Last Post: PrabhatN
  Null value in a row in Data table cocojava 1 4,136 10-08-2010, 11:20 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)