FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Support FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Support FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

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.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33145
    Anonyme
    Invité

    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
    Anonyme
    Invité

    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

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.