Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check if the Object is Empty/Null
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi Ankur Smile,

Code:
Set Object = CreateObject("Excel.Application")
If IsNull(Object) = False Then
   Msgbox "Pass"
Else
   Msgbox "Fail"
End If

Set Object = Nothing
If IsNull(Object) = True Then
   Msgbox "Pass"
Else
   Msgbox "Fail"
End If

In this code i need to check if the Object is "Null/Empty" after setting the Object to Nothing.

But this code does not provide what is expected. Could you help me out in this regards.
Reply


Messages In This Thread
Check if the Object is Empty/Null - by manojith1984 - 05-19-2009, 07:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to force QTP to Check for trigger through Recovery Object ? Sumit Maru 0 3,034 02-21-2011, 02:44 PM
Last Post: Sumit Maru
  How to check visibility of an Object ritugoyal 4 10,733 08-03-2009, 03:39 PM
Last Post: Ankur
  QTP 9.5 Object Repository merge tool not merging the Check Point objects govqa 0 3,235 05-18-2009, 07:11 PM
Last Post: govqa
  How to check an object is NOT there? alecjcook 2 3,082 05-13-2008, 02:10 AM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 1 Guest(s)