Topic
Konvertierung in Text mit Formatvorgaben möglich?
Page d'accueil ' Communauté ' FPScript ' Possibilité de convertir en texte avec des spécifications de format ?
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 14 années et 5 mois.
-
AuteurMessages
-
26.11.2010 à 20:21 #33145AnonymeInvité
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 à 20:21 #33147AnonymeInvité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 à 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 -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.