I have a really easy question, I need an expression to detect a null refnum.
I am sending the StationGlobals.TS.CurrentUser.LoginName from TestStand to the User Interface via the FrontEndCallback.seq using the UIMessage. There are times when the StationGlobals.TS.CurrentUser does not exist (i.e. when the user click on the 'Cancel' button of the Login Dialog). I want to detect this situation by checking if the StationGlobals.TS.CurrentUser is a null refnum. I tried the following expression such as
StationGlobals.TS.CurrentUser == Null
StationGlobals.TS.CurrentUser == null
but they all do not work.
Can anyone please tell me the expression to detect a null refnum?
Thanks for reading
Solved! Go to Solution.
Hello Oli Wachno,
thanks for your big help. PropertyExists method works for me! I added the PropertyExists("StationGlobals.TS.CurrentUser") in the precondition of the step. This works very well.