.. highlightlang:: us .. index:: FE_GetFormulaDirectory .. _fe_getformuladirectory: FE_GetFormulaDirectory ====================== .. us.tag FE_GetFormulaDirectory New411 ENGLISH formula The function :ref:`FE_GetFormulaDirectory` returns a string vector with the formula directories. .. function:: svDir = FE_GetFormulaDirectory() ssDir = FE_GetFormulaDirectory(bUserDir) .. us.return **Return Value** *svDir* is a string vector containing the formula directory. If the function is invoked with the parameter *bUserDir* = TRUE (1) the return value is the last path. .. us.params **Parameters** **Parameter** .. uparam:: bUserDir If *bUserDir* TRUE (1), the function returns the last path element. Default value is FALSE (0). .. us.comment **Comment** The formulas are loaded in the order of the given path elements. First all formulas from the first path element are loaded. If an identical formula name is found in the second path element, the formula from the first path element will be overwritten. If a new formula is created with the Formula Editor, it will be added to the last path element. If the last path element is write protected, the formula cannot be created. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2016 - New parameter *bUserDir*. .. seealso:: :ref:`formula-interpreter`, :ref:`onformulastarteval`, :ref:`FE_SetFormulaDirectory` :sub:`id-300257`