Forum Discussion
AlexKaras
16 years agoCommunity Hero
Hi Bai,
All variables in script languages are of OleVariant type (with possible sub-type differentiation as string, integer, etc.). Thus no type conversion in scripting languages is possible.
In your case you should use the WaitAliasChild function (see TC help for more details) and code like this (untested, off top of my head):
If (Aliases.Sys.processCMD.WaitAliasChild("CMDClass", 200).Exists) Then
Log.Message Aliases.Sys.processCMD.CMDClass.FullName
Else
Log.Warning "CMDClass child was not found"
End If
All variables in script languages are of OleVariant type (with possible sub-type differentiation as string, integer, etc.). Thus no type conversion in scripting languages is possible.
In your case you should use the WaitAliasChild function (see TC help for more details) and code like this (untested, off top of my head):
If (Aliases.Sys.processCMD.WaitAliasChild("CMDClass", 200).Exists) Then
Log.Message Aliases.Sys.processCMD.CMDClass.FullName
Else
Log.Warning "CMDClass child was not found"
End If