David:
So the test I chould have used is:
IF type( "o1" ) != "O" OR (type( "o1" ) = "O" AND ISNULL(o1))
??
And the reasoning behind:
IF type( "o1.Name" ) = "C"
is that all objects have a Name property and if that name property is of TYPE "C", then that proves the object exist...and your test is shorter and quicker... :)
Thanks
>Richard:
>
>o1 = createobject( "form" )
>? type( "o1" )
>? type( "o1.Name" )
>o1 = .null.
>? type( "o1" )
>? type( "o1.Name" )
>
>o1 is still type O, but it's no longer an object.
>
>>I'm mostly curious, and totaly new to the Universal Thread, but wouldn't it be better to test TYPE didn't return an "O", like the following?
>>
>> IF TYPE([oControl.Name]) != "O"
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only