Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have field with array that looks like this:
2;3;4;5;6;7;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
12;13;14;15;16;17;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
22;33;44;55;66;77;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
I want to find those where the number "2" exists (first row) but when i use the index function it gives all lines.
Sorry there was a typo by adding the extra ; which shouldn't be quoted with double-quotes else single-quotes, like:
wildmatch(';' & Field & ';', '*;2;*')
You need to include the delimiter within your search, maybe with something like this:
wildmatch(";" & Field & ";", '*;2;*')
and the extra ; chars around the field consider also a match at start or ending of the string.
Beside this you may split the field with an internal subfield() loop into n records and fetching your wanted value afterwards with a flag or within a where-clause.
Thank for your reply, i am using table chart and
wildmatch(";" & myField & ";", '*;2;*') did not work. its say error.
there is something else i can do?
Sorry there was a typo by adding the extra ; which shouldn't be quoted with double-quotes else single-quotes, like:
wildmatch(';' & Field & ';', '*;2;*')