One possible way is that you log all the strings to Citadel and use SQL to query.
For example, you create TextEntry1 on panel, and log its value. Then, input several strings, and all will be logged. But the problem is that you have to input all historical batch names one by one.
You can use SQLExec to query. This is what I did to search and it worked.
Create TextEntry2 to input the string to search.
For SQLExec object,
Data Source = "DSN=lookout61; DBQ=C:\Program Files\National Instruments\Lookout 6.1\database\;"
SQL = "SELECT COUNT(""sh-rd-rshi/default/TextEntry1"") FROM RawData Where ""sh-rd-rshi/default/TextEntry1""= '"&TextEntry2&"' "
TextEntry1 is the trace that stores all the strings.
I logged a string "test", so if I input "test" to TextEntry2, the SQLExec object's datamember c1 will be 1 as query result. If it is 0, no such string in database.
Message Edited by Ryan.S on
12-06-2007 01:08 AM
Ryan Shi
National Instruments