Hello. I have record and field. This field contains 1, 2, 3 or 4 location code filters. For example:
WHITE
WHITE|GREEN
WHITE|GREEN|RED
WHITE|GREEN|RED|BLUE
What is the most optimal (and simplest) way to check if number of location code filter is greater than 1?
I do this task in this way:
FilterTemp: Text
FilterTemp := Record.GetFilter("Location Code");
if FilterTemp.contains('|');
But im not sure that this is good way.
And how can I count number of Location Code filters in this example? I think I can count '|' in FilterTemp and result+1 will be correct answer. But maybe exists easier way?