Topic
calculation with a dataset which don’t exist
Startseite ' Community ' FPScript ' calculation with a dataset which don’t exist
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 14 Jahren, 8 Monaten von Anonym aktualisiert.
-
AutorBeiträge
-
23.09.2010 um 02:35 Uhr #33163AnonymGast
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 um 02:35 Uhr #33165AnonymGastHello,
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 um 03:14 Uhr #33164Bernhard KantzTeilnehmerThere 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. -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.