FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Konvertierung in Text mit Formatvorgaben möglich?

Startseite ' Community ' FPScript ' Konvertierung in Text mit Formatvorgaben möglich?

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #33145
    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”.

    #33147
    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”.

    #33146
    Bernhard 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 [b]String[/b] data type conversion operation, [b]StringFind[/b] and [b]StringMid[/b] to achieve the formatting you want.
    FlexPro 9 will contain a [b]Format[/b] FPScript function which will receive a formatter and a value and will return the formatted text.

    Support
    support@weisang.com

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