danke für den hinweis.

sabine baierl


-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Auftrag von Thomas Bandt
Gesendet: Donnerstag, 29. September 2005 17:38
An: asp.net@glengamoi.com
Betreff: AW: [Asp.net] wordwrap funktion


Hi aspx!

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von aspx
> Gesendet: Donnerstag, 29. September 2005 16:31
> An: asp.net@glengamoi.com
> Betreff: AW: [Asp.net] wordwrap funktion
>
>
> private const int m_maxWidth = 70;
>
> private string WrapWords(string actualText)
>               {
>                       const char space = (char)32;
>                       string []words = actualText.Split(space);
>
>                       string ret = string.Empty;
>                       int lineCounter = 1;
>
>                       foreach(string word in words)
>                       {
>                               if (ret.Length + word.Length >
> m_maxWidth * lineCounter)
>                               {
>                                       ret =
> string.Concat(ret, "\n", word);
>                                       lineCounter++;
>                               }
>                               else
>                               {
>                                       ret =
> string.Concat(ret, space, word);
>                               }
>                       }
>
>                       return ret.Trim();
>               }
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Daniel Wasser
> Gesendet: Donnerstag, 29. September 2005 14:07
> An: asp.net@glengamoi.com
> Betreff: [Asp.net] wordwrap funktion
>
>
> Hallo Liste,
>
> hat jemand von euch eine Funktion die ein
> <br> nach einer bestimmten Anzahl von Zeichen in
> einen Text einfügt?
> Wäre super wenn jemand Sie posten könnte.
>
> Grüße, Daniel
>
> _______________________________________________
> Asp.net Mailingliste, Postings senden an:
> Asp.net@glengamoi.com
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/asp.net
>
> _______________________________________________
> Asp.net Mailingliste, Postings senden an:
> Asp.net@glengamoi.com
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/asp.net
>

_______________________________________________
Asp.net Mailingliste, Postings senden an:
Asp.net@glengamoi.com
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

_______________________________________________
Asp.net Mailingliste, Postings senden an:
Asp.net@glengamoi.com
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Reply via email to