FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Support FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Support FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

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.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33163
    Anonyme
    Invité

    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
    Anonyme
    Invité

    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

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.