Hello,
I saw this message while searching through answers to my problem.
I have a customer field, and I want to check within that string a particular word 'grönmark'.
We have different customer names for the same customer for example :
Oy Grönmark Ab
Oy Brynolf Grönmark Ab
So when ever this string includes a word Grönmark I want to print just Grönmark.
I tried like this : if instr({fr.ftgnamn},'grönmark')>0 then 'Grönmark'
this is not working for some reason. Crystal doesn't give any errors, but it doesn't return any values even though there are lots of those customers on my report.
If someone could see where I'm going wrong.
Thank you,
Jyri
Edit : Got dammit that function was case sensitive. problem solved by :
if instr({fr.ftgnamn},'Grönmark')>0 then 'Grönmark'
Edited by Jyri - 24 Feb 2010 at 11:53pm