‎2010 Feb 23 12:50 PM
Hi All,
My String is Str =" Anshul((Rawat))"
I need to remove each of the one bracket..o/p should be like "Anshul(Rawat).
Plz help.
‎2010 Feb 23 12:58 PM
Hello
data: str(20).
Str = ' Anshul((Rawat))'.
REPLACE '((' WITH '(' INTO str.
REPLACE '))' WITH ')' INTO str.
write str.
‎2010 Feb 23 12:58 PM
Hello
data: str(20).
Str = ' Anshul((Rawat))'.
REPLACE '((' WITH '(' INTO str.
REPLACE '))' WITH ')' INTO str.
write str.
‎2010 Feb 23 1:01 PM
‎2010 Feb 23 1:15 PM
Hi Dzed,
If i use double brackets more than one time, it is not working properly.
like "Anshuk((Rawat))Hello))".
It replaces only first double bracket once and gives the output as" Anshul(Rawat)Hello))"
‎2010 Feb 23 1:18 PM
Hi,
Use REPLACE ALL OCCURENCES OF '((' WITH '(' INTO str.
REPLACE ALL OCCURENCES OF '))' WITH ')' INTO str.
Regards,
Ganga
‎2010 Feb 23 1:21 PM
Hi,
you can achieve this in 2 means.
1. check the field(variable) from which you are displaying this to the output.
.Str =" Anshul((Rawat))"
then check out for the first occurrence of '(' and also for the last occurrence of ')'.
then delete those two things.
after this your output looks like Anshul(Rawat).
2.Check out for the string length and use offset positions to remove the special characters.
Thanks & regards,
Sasi Kanth.