03-01-2011 02:42 AM
Hello All,
i want to search a expression of value and replace it,The value is a element in a array as input controller.
But the teststand can not find the expression.and i have to replace it one by one.So messy.if i search the other expressions not in array.it is right.
Can you tell me how to fix it?
Thanks a lot.
BR
Johnny
03-01-2011 03:19 AM
Hi,
if you want to search and replaced for something that contains within an array of data. First you have to obtain that data, starting at the first element and index through the array until you have found what your are looking for and replaced it. This seems to be standard what every the programming language so I am not sure what you expect TestStand to do differently.
03-01-2011 09:15 AM - edited 03-01-2011 09:17 AM
There is a find and replace feature in the TestStand sequence editor. Press Ctrl+F or select the "Find/Replace" menu item under the edit menu. It should work fine for array elements. If you are having problems getting this feature to work in your use case, please tell us what version of TestStand you are using and please attach an example sequence file and/or a detailed description of how to reproduce the problem.
Hope this helps,
-Doug
03-01-2011 08:40 PM
Hello All,
Thanks for your reply.I fixed it.
In the find/replace dialog.if you selected "match case" and "regular expression",TS will not find out the expression about the elements'value of a array that you want.
BR
Johnny
03-02-2011 11:03 AM
The "match case" and "regular expression" settings should not affect which values are searched, though it might cause you to not get a match depending on what your regular expression is.
-Doug