kusaha
3rd August 2009, 08:03
Just saw the thread about string.scan.
But I don't whether it can use with my problem.

I need to scan for specific character in the text filed which my text filed does not have any separator just like "ABCDEF". And I would like to scan for character "D".

thanks,

george7a
3rd August 2009, 10:26
Hi,

You can use the pos function (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_pos_rpos).

For example:

lond d.pos
d.pos = pos("abcd","d")
| d.pos will have the position of the letter "d"
I hope it helps,

- George

kusaha
3rd August 2009, 10:32
Hi,

You can use the pos function (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_pos_rpos).

For example:

lond d.pos
d.pos = pos("abcd","d")
| d.pos will have the position of the letter "d"
I hope it helps,

- George

Hi George,

I think this is what I want.

Many thanks,
Kosol