07-16-2009 07:22 AM
Hi,
I have custom step types written in C#.While executing the Edit SubStep for an instance, the user should be able to select a TestStand variable.I wonder if it is possible to view the default variable dialog used in TestStand, initiated from my C# code.
After selecting a variable in the dialog, I need the value written into the Expression window.
So, I need also a method to readout the value of the expression window. Does anyone know if this is possible?
Best regards
07-16-2009 04:10 PM
Let me see if I understand you correctly- You want to show the Browse Expression Dialog Box? If you have a handle to the Engine you can do this using Engine.DisplayBrowseExprDialogEx() method.
There is also an ExpressionEdit object you can use as well.
You can read about both of these in the TestStand help.
Hope this sheds some light,
07-16-2009 04:44 PM
Note that if you drop a TestStand ExpressionEdit control on a form/panel/vi, you can use the Buttons page on the property sheets to add an ExpressionBrowser button that automatically works with that ExpressionEdit control.
Remember to set the ExpressionEdit.Context property to the SequenceContext or PropertyObject that the expression evaluates under.