Topic
FPSricpt ChangeUnit function does not work ?
- This topic has 2 replies and 2 voices and was last updated 9 years, 9 months ago ago by HerveM1234.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
29.07.2015 at 15:48 #33608HerveM1234Participant
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 at 15:48 #33610HerveM1234ParticipantHi,
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 at 08:42 #33609Bernhard KantzParticipantThe 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. -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.