> Olivier,
>
> Il y a deux facons d'appeler Replace
>
> Replace(Char, Char) Replaces all occurrences of a specified Unicode
> character in this instance with another specified Unicode character.
> Replace(String, String) Replaces all occurrences of a specified String
> in this instance, with another specified String.
>
> Pour eliminer des char
>
> string s = "aa.bb.cc";
>
> Console.WriteLine(s.Replace(".", null)); // aabbcc
>
> Gregory
> _
>
> "OlivierH" <"nospam[contact]"@planitron.com> wrote in message
> news:fuo90s$pbl$1@news.niouzes.net...
>> Bonsoir,
>>
>> voici la solution pour ceux qui ont besoin,
>> j'ai 3 solution (comme fox !)
>>
>> maChaine.Replace("\r", "###");
>> ou
>> maChaine.Replace(Convert.ToChar(13).ToString(), "123 ");
>> ou
>> maChaine.Replace(((char)13).ToString(), "&&& ");
>>
>> Olivier
>>
>>
>>
>> OlivierH a écrit :
>>> Bonjour à tous,
>>>
>>> J'aimerais faire un strtran(machaine,chr(13)," ") en c#
>>> et j'ai un probleme avec le chr(13) qui s'ecrit (char)13
>>>
>>> Voila mon code :
>>> maChaine.Replace((char)13, " ");
>>>
>>> Et pourtant console.writeline("test"+(char)13); // fonctionne !
>>>
>>> Comment puis je ecrire un saut de ligne en c#
>>>
>>> D'avance merci
>>> Olivier
>>>
>