Forum FlexPro – 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)
  • Autor
    Beiträge
  • #12458
    Anonym
    Gast

    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
    Anonym
    Gast

    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
    Teilnehmer

    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)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.