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

Paramètres du compte.

Topic

FPSricpt ChangeUnit function does not work ?

Page d'accueil ' Communauté ' FPScript ' La fonction FPSricpt ChangeUnit ne fonctionne pas ?

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33608
    HerveM1234
    Participant

    Hi,

    With : [code]Dim toto

    toto=Signal({1, 3, 5, 7}, {0, 1, 2, 3})
    ChangeUnit(toto,”test”)
    Return(toto)
    [/code]

    this formula, the formula’s units remains empty ! Why?

    #33610
    HerveM1234
    Participant

    Hi,

    With : [code]Dim toto

    toto=Signal({1, 3, 5, 7}, {0, 1, 2, 3})
    ChangeUnit(toto,”test”)
    Return(toto)
    [/code]

    this formula, the formula’s units remains empty ! Why?

    #33609
    Bernhard Kantz
    Participant

    The function ChangeUnit() returns a dataset with the unit set/converted to the trailing parameters. It does not alter the first argument itself. To get the desired result you may write:
    [code]
    Dim toto = Signal((4, 1, 2), 1)
    ChangeUnit(toto, “test”)
    [/code]
    Note: The last expression will become the value of the formula, [b]Return [/b]is not necessary.

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