FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Konvertierung in Text mit Formatvorgaben möglich?

Home page Community FPScript Conversion to text with format specifications possible?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33145
    Anonym
    Guest

    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
    Guest

    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
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.