NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

EditTimeMenuItem.ItemTextExpression using String Input

Hello,

i have created a Sequence File to configure the Sequence Editor (4.0) Tool Menu dynamically. Now i have a question about the ActiveX Function EditTimeMenuItem.ItemTextExpression, which need a String as Input. Take an example: to set the name of a new Menu to "New Menu", i must type "\"New Menu\""  instead of "New Menu". Otherwise i get the Menu Name "Unexpected token: Menu".

I think it maybe a small mistake in the value transfer, isn't it?



ItemTextExpression Property

Syntax
EditTimeMenuItem.ItemTextExpression

Data Type
String

Purpose
Specifies the expression TestStand uses to determine the menu item text at run time.
Regards
MY
0 Kudos
Message 1 of 4
(3,257 Views)
The string must be an expression.  The string will be evaluated, so if you are providing a constant string value, the quotes marking it as a constant need to be escaped when defining the string (depending on what environment you are setting the property).

Allen P.
0 Kudos
Message 2 of 4
(3,253 Views)
Hi Allen, thank you for your quick answer.

But i still don't understand, why the Input format of this String is different than that in Function EditTimeMenuItem.EnabledExpression or in Function EditTimeMenuItem.HiddenExpression? Both are Expression.
Regards
MY
0 Kudos
Message 3 of 4
(3,249 Views)
The enabled expressions must evaluate to a Boolean.  The ItemTextExpression must evaluate to a String.
0 Kudos
Message 4 of 4
(3,238 Views)