QlikTip #10: Zeilenumbruch in einer Textbox

Wenn man einen Zeilenumbruch in einer Textbox erzingen will und eine Formel verwendet, dann hat man zwei Möglichkeiten:

  • Variante 1: erzwungender Zeilenumbruch mit “\n”
  • Variante 2: erzwungener Zeilenumbruch mit Chr(13) und Chr(10) (carriage return und line feed)

In einer Formel sieht das dann so aus:

Variante 1:

='This is a long text, this is the first line\nand this is the second line'

Variante 2:

='This is a long text, this is the first line' & Chr(13) & Chr(10) & 'and this is the second line'

Dies führt dann zu folgendem Ergebnis:

Erzwungene Zeilenumbrüche mit Variante 1 & Variante 2

Erzwungene Zeilenumbrüche mit Variante 1 & Variante 2

Possibly related posts:

  1. QlikTip #6: Null-Values in Listboxen ausblenden
  2. QlikTip #9: Löschen von Variablen
  3. QlikTip #7: Überprüfen, ob eine Tabelle existiert
Bookmark and Share

and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

6 Comments

  1. Peter
    Posted October 14, 2009 at 16:20 | Permalink

    Es geht auch einfach mit dem Zeilenumbruch im Text oder in der Form
    = ‘Text’ & Formel & ‘
    ‘ & Formel

    Peter

  2. Gunar Senf
    Posted July 14, 2010 at 09:42 | Permalink

    Hallo Herr Walther,

    was auch eine interessante Aufgabenstellung ist, wie kann man Text in Report bzw. im Sheet darstellen der mit einen Subset von HTML Tags formatiert wird.

    • Posted October 27, 2010 at 15:54 | Permalink

      Danke für die Anregung, habe es mal auf die Liste der Artikel gegeben, an denen ich in nächster Zeit arbeiten werde …

      Schöne Grüße

      Stefan WALTHER

  3. Stefan Bockelmann
    Posted October 13, 2010 at 11:08 | Permalink

    Hallo Herr Walther,

    Gibt es noch weitere Formatierungskürzel wie “\n” innerhalb einer Textbox??
    Wo kann man da nachsehen?

    viele Grüße,
    S.Bockelmann

    • Posted October 27, 2010 at 15:58 | Permalink

      … mir sind jetzt keine weiteren bekannt …

      Schöne Grüße
      Stefan WALTHEr

Post a Comment

(required)
(required)

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting