You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\*`GCD`and `DET` are user-defined functions (UDF).
31
+
\*`GCD`is an user-defined function (UDF).
32
32
33
33
Allowed expressions must follow the following grammar:
34
34
@@ -80,9 +80,9 @@ Sub AddingNewFunctions()
80
80
Dim Result As String
81
81
82
82
Set Evaluator = New VBAexpressions
83
-
UDFnames() = Array("GCD", "DET")
83
+
UDFnames() = Array("GCD")
84
84
With Evaluator
85
-
.DeclareUDF UDFnames, "UserDefFunctions" 'Declare the Greatest Common Divisor and Determinant functions
85
+
.DeclareUDF UDFnames, "UserDefFunctions" 'Declare the Greatest Common Divisor function
86
86
'defined in the UDfunctions class module. This need
87
87
'an instance in the VBAcallBack class module.
88
88
' The determinant of a diagonal matrix. It is defined
@@ -100,8 +100,6 @@ VBA expressions can evaluate matrix functions whose arguments are given as array
100
100
101
101
However, user-defined array functions need to take care of creating arrays from a string, the `ArrayFromString` method can be used for this purpose.
102
102
103
-
As an illustration, the `UDFunctions.cls` module has an implementation of the `DET` function with an example of using the array handle function. In addition, the `GCD` function is implemented as a demo.
104
-
105
103
## Using the code
106
104
VBA Expressions is an easy-to-use library, this section shows some examples of how to use the most common properties and methods
0 commit comments