06-30-2009, 04:12 AM
Hi
I am working on verifying the value of the object which is null.
The code as below:
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..........
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..........