-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > Automation and VBA > Accessing to calculated datas in VBA > Reply To: Accessing to calculated datas in VBA

Hi,
What is the best way to access from VBA to datas calculated (or not) in FlexProScript.
I tried :
Dim toto1, toto2, toto3
Set toto1 = ActiveDatabase.RootFolder.Object("Formulas\myformula.FML", fpObjectTypeFormula).Value
Set toto2 = toto1.X
toto3=toto2(0) ' acces to the first xvalue of myformula for example
It seems to work fine
If I write
dim toto
toto=ActiveDatabase.RootFolder.Object("Formulas\myformula.FML", fpObjectTypeFormula).Value.X(0)
it doesn’t work. Why?
This this code does not work either :
dim toto
set toto = databases("MyDatabase.FPD").Object("Formulas\myformula.FML").value
Something wrong?
Thank you for the help
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information