RE: [Axapta-Knowledge-Village] Replace char in string

2005-09-15 Thread kbi kbi
illage] Replace char in string   Hi Alfonso,   Place the following code in a job and execute it:       str RepStr = 'Pp-ppp-pp';    int CharPos;    char    RepChar = '-';    char    RepCharWith = '+';    ;     CharPos = strscan(RepStr, RepChar,1,

RE: [Axapta-Knowledge-Village] Replace char in string

2005-09-15 Thread Alfonso Collados Arroyo
2005 16:06 Para: Axapta-Knowledge-Village@yahoogroups.com Asunto: Re: [Axapta-Knowledge-Village] Replace char in string   Hi Alfonso,   Place the following code in a job and execute it:       str RepStr = 'Pp-ppp-pp';     int CharPos;     char 

Re: [Axapta-Knowledge-Village] Replace char in string

2005-09-15 Thread Varden Morris
Hi Alfonso,   Place the following code in a job and execute it:       str RepStr = 'Pp-ppp-pp';    int CharPos;    char    RepChar = '-';    char    RepCharWith = '+';    ;     CharPos = strscan(RepStr, RepChar,1, strlen(RepStr));     while (CharPos)    {    RepStr = strPoke(RepS

[Axapta-Knowledge-Village] Replace char in string

2005-09-15 Thread Alfonso Collados Arroyo
Hi all: How can I replace a char in a string? I try to explain it. I have this string “Pp-ppp-pp” and I want  to obtain  “PP++pp” Thanks very much -- This e-mail and any attachments are confidential. If you