--- In [email protected], "staffuwa" <[EMAIL PROTECTED]>
wrote:
>
> Hello Guys,
> I want to take out the part before the carriage return character
when
> I find it in a string and put it on a variable, and do the same with
> the part next to this special character.
> How can I do it??
> Thank you in advance.
> Daniele
>
Its very simple Daniele,
for example:
str a = "It is very ~ simple";
str b,c;
;
b = substr(a,1,strfind(a,'~',1,strlen(a)) - 1);
c = substr(a,strfind(a,'~',1,strlen(a)) + 1, strlen(a));
info(b);
info(c);
....... i use ~ as special character, b will contain the part of
string before ~ and c will contain the part after.
Hope it helps.
Kris