General information
Category:
Coding, syntax & commands
Hey Crooner,
>? type('oxcel.application')='O'
This code is not foolproof. Consider this:
o = createobject("excel.application")
?type("o.application.name") && "C"
o = null
?type("o") && still evaluates to "O"
?type("o.application.name") && "U"
Best to check for data type of the Name Property. Or combine things like this:
!isnull(o) and type("o") = "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