FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

calculation with a dataset which don’t exist

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33163
    Anonym
    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

    #33165
    Anonym
    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

    #33164
    Bernhard Kantz
    Participant

    There 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.

    support@weisang.com

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