Forum FlexPro – Discuss your topic!

calculation with a dataset which don’t exist

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

  • This topic has 2 replies, 2 voices, and was last updated 14 years ago by Anonymous.
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.