Topic
calculation with a dataset which don’t exist
Page d'accueil ' Communauté ' FPScript ' calculation with a dataset which don’t exist
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 14 années et 8 mois.
-
AuteurMessages
-
23.09.2010 à 02:35 #33163AnonymeInvité
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 à 02:35 #33165AnonymeInvité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 à 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. -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.