Sauter la navigation

Paramètres du compte.

Topic

access to formula value

Page d'accueil ' Communauté ' FPScript ' accès à la valeur de la formule

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

    I would like to access and to extract the formula value into a data set in order to make other calcultation and work with VB.

    How can I do it ?

    regards,

    #33447
    Anonyme
    Invité

    I would like to access and to extract the formula value into a data set in order to make other calcultation and work with VB.

    How can I do it ?

    regards,

    #33446
    Bernhard Kantz
    Participant

    It’s possible to evaluate a FPScript formula. In VBA you can use the [b]Evaluate[/b] method.
    [code]
    Dim oFml as Formula
    Set oFml = ThisDatabase.RootFolder.Object(“Formula”, fpObjectTypeFormula)
    oFml.Evaluate

    Dim oDataset as Dataset
    Set oDataset = ThisDatabase.RootFolder.Object(“Formula”, fpObjectTypeDataSet)
    Dim vtValue
    vtValue = oDataset.value
    [/code]
    support@weisang.com

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