10-02-2012, 05:17 AM
QM fellows, do you have any better idea?
Function findtx
Function findtx
Returns 0-based index of token
|
10-02-2012, 05:17 AM
QM fellows, do you have any better idea?
Function findtx
10-02-2012, 06:36 AM
Hello
str s="jan feb mar apr" str target="feb" _i=findtx(s target) out _i function findtx function# str'&s str'&target _i=0 ARRAY(str) test int nb=tok(s test) for _i 0 nb if(!strcmp(test[_i] target)) ret _i HTH
10-02-2012, 07:12 AM
10-02-2012, 09:20 PM
Thank you both for your kind help.
|
« Next Oldest | Next Newest »
|