Finding text using expressions
Posted: 18 Jun 2009 12:56
I've had a good look, but either I'm having a bit of a male moment (can't see what's under my nose) or it's not possible.
What I want is to use an expression to check if a particular event's place contains some text. I know there is the ContainsText() function but this checks the whole record without regard to the which event or field the text is in. ExistsText() only checks if the field contains something or nothing.
Something like =ContainsText(%INDI.BIRT[1].PLAC%, ', UK') would be the ideal function to check if someone was born in the UK.
If such a function existed, then I wouldn't have to use flags to place country icons on my diagrams, which also means that changing a place doesn't need me to ALSO change the flag.
Is there some complex mixing of functions that would provide a similar feature or I am going to have to make a wish list request.
Edit: Looking at the wish list I see that item 182 is similar to what I am looking for.
ID:3835
What I want is to use an expression to check if a particular event's place contains some text. I know there is the ContainsText() function but this checks the whole record without regard to the which event or field the text is in. ExistsText() only checks if the field contains something or nothing.
Something like =ContainsText(%INDI.BIRT[1].PLAC%, ', UK') would be the ideal function to check if someone was born in the UK.
If such a function existed, then I wouldn't have to use flags to place country icons on my diagrams, which also means that changing a place doesn't need me to ALSO change the flag.
Is there some complex mixing of functions that would provide a similar feature or I am going to have to make a wish list request.
Edit: Looking at the wish list I see that item 182 is similar to what I am looking for.
ID:3835