Topic
calculation with a dataset which don’t exist
- This topic has 2 replies and 2 voices and was last updated 14 years, 8 months ago ago by Anonym.
-
AuthorPosts
-
23.09.2010 at 02:35 #33163AnonymGuest
Hello,
I would like to make a fpscript formula with the following behaviour :
– if a dataset called “A” (for instance a dataseries of 10 values) exists in the rootfolder, then return the product 2 x A
– else, return the value 0
At the moment my fpscript formulas return errors if they try to make calculations with dataset wich don’t exist.
Is it necessary to use exceptions ?
Thanks in advance
23.09.2010 at 02:35 #33165AnonymGuestHello,
I would like to make a fpscript formula with the following behaviour :
– if a dataset called “A” (for instance a dataseries of 10 values) exists in the rootfolder, then return the product 2 x A
– else, return the value 0
At the moment my fpscript formulas return errors if they try to make calculations with dataset wich don’t exist.
Is it necessary to use exceptions ?
Thanks in advance
23.09.2010 at 03:14 #33164Bernhard KantzParticipantThere is a FPScript [b]Try[/b] … [b]Catch[/b] statement. But you cannot use it in this case.
Create a dummy FPScript formula ‘A’ which returns 0. -
AuthorPosts
- You must be logged in to reply to this topic.