Forum Discussion
rraghvani
Champion Level 3
11 months agoI'm not sure what version of TC you are using. Since WaitTime is 0, WaitAliasChild will return immediately. Assuming the child alias object exists, then the property Visible will return a value immediately too.
However, if the child alias object does not exist, WaitAliasChild will return a stub object immediately. Property Exists will return immediately, but Visible will return an error after a number of seconds - depending on the project auto-wait timeout.
Ideally, you should enclose your Visible property within an If statement
let ac = Aliases.ICS.WaitAliasChild("AddChannelWindwo", 0);
if (ac.Exists) {
let ac_vis = ac.Visible;
}