Topic
FPSricpt ChangeUnit function does not work ?
Startseite ' Community ' FPScript ' FPSricpt ChangeUnit function does not work ?
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 9 Jahren, 9 Monaten von HerveM1234 aktualisiert.
-
AutorBeiträge
-
29.07.2015 um 15:48 Uhr #33608HerveM1234Teilnehmer
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?
29.07.2015 um 15:48 Uhr #33610HerveM1234TeilnehmerHi,
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?
31.07.2015 um 08:42 Uhr #33609Bernhard KantzTeilnehmerThe 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. -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.