Forum FlexPro – Discuss your topic!

Konvertierung in Text mit Formatvorgaben möglich?

Home > Community > FPScript > Konvertierung in Text mit Formatvorgaben möglich?

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #12451
    Anonym
    Gast

    Hallo,
    gibt es die Möglichkeit Zahlenwerte bei der Umwandlung in Text auch zu formatieren? Z.B. möchte ich die Zahl 1.23456789 in Text umwandeln und dabei die Nachkommastellen angeben, so dass sie in Textform so aussieht: “1.23”.

    #8130
    Anonym
    Gast

    Hallo,
    gibt es die Möglichkeit Zahlenwerte bei der Umwandlung in Text auch zu formatieren? Z.B. möchte ich die Zahl 1.23456789 in Text umwandeln und dabei die Nachkommastellen angeben, so dass sie in Textform so aussieht: “1.23”.

    #8746
    Bernhard KantzBernhard Kantz
    Teilnehmer

    Values can be formatted at every place where they are shown in diagrams, tables etc. It can be done by choosing a formatter (in your case %.2f) interactively by clicking the corresponding button at the right ofthe formatter edit box.

    In FlexPro 8 there is currently no FPScript function to format a value directly into a string using a formatter. To work around this you can use a combination of the String data type conversion operation, StringFind and StringMid to achieve the formatting you want.
    FlexPro 9 will contain a Format FPScript function which will receive a formatter and a value and will return the formatted text.

    Support
    support@weisang.com

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.