tonyvee1973
IS-IT--Management
Hi Guys
I have a field which hold 2 or 3 lines of address. I need to get each line in its own field in crystal.
For the top line i have used:
replace({mytable.myfield},chr(40)," ")
and this works ok
For the next line i tried the formula below to show all after the carriage return but it goes wrong:
if instr({mytable.myfield}, chr(13)) > 1
then Right({mytable.myfield},instr({mytable.myfield}, chr(13)))
Surely there myust be a simpler way?
I have a field which hold 2 or 3 lines of address. I need to get each line in its own field in crystal.
For the top line i have used:
replace({mytable.myfield},chr(40)," ")
and this works ok
For the next line i tried the formula below to show all after the carriage return but it goes wrong:
if instr({mytable.myfield}, chr(13)) > 1
then Right({mytable.myfield},instr({mytable.myfield}, chr(13)))
Surely there myust be a simpler way?