Topic
Konvertierung in Text mit Formatvorgaben möglich?
- This topic has 2 replies and 2 voices and was last updated 14 years, 5 months ago ago by Anonym.
-
AuthorPosts
-
26.11.2010 at 20:21 #33145AnonymGuest
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”.26.11.2010 at 20:21 #33147AnonymGuestHallo,
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”.26.11.2010 at 21:08 #33146Bernhard KantzParticipantValues 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 -
AuthorPosts
- You must be logged in to reply to this topic.