Loading a value set into a unit at run time.

Question:

How can I load a value set into a unit at run time?

Solution:

To do so, you must use the following Formula methods:

object.LoadFormulaDlg(bstrformulaName)

This method loads a value set into a unit, where bstrformulaName is the name of the module inside the project and object is a Viewer object. When executed, it opens a window for selecting a value set and a unit; it also enables changing the values being loaded.

Example: Application.LoadFormulaDlg “Formula1”

object.LoadFormulaValues bstrformulaName, bstrunitName, bstrvalueName

This method loads a specific value set (for example, “Value 1“) into a specific unit (for example, “Unit 1“). It shows a window for editing the values to be loaded.

Example: Application.LoadFormulaValues “Formula1”, “Unit 1”, “Value 1”

object.LoadFormulaValuesQuiet bstrformulaName, bstrunitName, bstrvalueName

This method loads a specific value set (for example, “Value 1“) into a specific unit (for example, “Unit 1“). However, It does not show a window for editing the values to be loaded.

Example: Application.LoadFormulaValuesQuiet “Formula1”, “Unit 1”, “Value 1”

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 *