for a target freshly created, the attempt to read the target’s robotconfiguration property arises an “No configuration” error, and goes to my error-handling code. Is there any way to detect this so that it won’t go to the errorr-handling code? I tried IsEmpty, and a few other Is.. functions in vB in vain.
I may not make myself understood. My code would be like this:
On Error Goto HandleError
…
If t.RobotConfiguration.cf1 = null Then
… do stuff …
Else
… do other stuff …
End If
…
HandleError:
… Error handling code …
When executing the “If t.RobotConfiguration.cf1 = null Then”, it immediately goes to the error handling routine below. I have also tried " if IsNull(t.RobotConfiguration) then ", and the same thing happened.
It looks like any reference to t.RobotConfiguration in any fashion leads to an error, while I am trying to find a API or VB function to acheive the logic structure similar to the above code.