KB-40497: Accessing a formula inside an XObject.

Question:

How can I access a formula which is inside an XObject to use the LoadFormulaValuesQuiet method in an XControl?

Solution:

To do so, you must use the following script on a button inside the XControl:

'Gets the full path of the XObject
ObjPath = XCFormula.Source.PathName


'Concatenates the XObject path with the Formula name
FormulaName = ObjPath & ".Formula1"


'Loads Value1, in Unit1 of the Formula
Application.GetObject(FormulaName).LoadFormulaValuesQuiet "Unit1", "Value1"

NOTE: For more information, see the attached application.

Attachments:

AppExample

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *