quote:
Originally posted by Nem
Origin Ver. 9.1
Operating System: Windows 8
I would like to find the row number associated to a string contained in a column. In other words, I have a column which contains different strings and I would like to find a given string and its associated row number.
This could be done with a 'for' and 'if' iteration, but I thought there was a simple function in LabTalk. I tried with the 'index' and 'xindex' functions, but without success. Any idea?
Thanks!
A
1 aa
2 ab
3 ac
4 ac
stringarray sa;
sa.copyfrom(col(A));
sa.find("ab")=;
// sa.find("ab")=2
sa.find("ac")=;
// sa.find("ac")=3
©c¡Ï ¤È¥¹ ©f¨u©c ©c¥ì ¥Î¤³ ©c/ ©¦£¯
©c¨Ê¥Î ¤´¥¨ ¥ó ¨× ¥ó¤á' ¥Ì©¦¥ /¤í ¥Õ©¦©f
¨Ö ¦á ©¦£þ ©` ¥Õ ©¦
©¦