FlexPro Forum – Discuss Your Topic!

calculation with a dataset which don’t exist

Home > Community > FPScript > calculation with a dataset which don’t exist

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12458
    Anonymous
    Guest

    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

    #8135
    Anonymous
    Guest

    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

    #8754
    Bernhard KantzBernhard Kantz
    Participant

    There is a FPScript TryCatch statement. But you cannot use it in this case.
    Create a dummy FPScript formula ‘A’ which returns 0.

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.