Skip to content

Commit 52552b0

Browse files
committed
VBA-Expressions v3.2.11
1 parent dbf9a9d commit 52552b0

13 files changed

+562
-50
lines changed

docs/assets/img/VBAExprManual.pdf

5.2 KB
Binary file not shown.

src/LO Basic/VBAExpressions.update.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<description xmlns="https://openoffice.org/extensions/update/2006"
33
xmlns:xlink="https://www.w3.org/1999/xlink">
44
<identifier value="com.ecpsolutions.extensions.vbaexpressions.oxt"/>
5-
<version value="1.1.1"/>
5+
<version value="1.1.2"/>
66
<update-download>
7-
<src xlink:href="https://github.com/ws-garcia/VBA-Expressions/releases/download/v3.2.10/VBAExpressions.oxt"/>
7+
<src xlink:href="https://github.com/ws-garcia/VBA-Expressions/releases/download/v3.2.11/VBAExpressions.oxt"/>
88
</update-download>
99
</description>

src/LO Basic/VBAExpressionsLib/TestRunner.xba

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Private tTotal As Long
88

99
&apos;#
1010
&apos;////////////////////////////////////////////////////////////////////////////////////////////
11-
&apos; Copyright © 2024 W. García
11+
&apos; Copyright © 2024-2025 W. García
1212
&apos; GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1313
&apos; https://github.com/ws-garcia
1414
&apos;////////////////////////////////////////////////////////////////////////////////////////////
@@ -364,6 +364,27 @@ Sub RunAllTests
364364
&quot;INSTR(&apos;Gear&apos;;&apos;e&apos;)&quot;, _
365365
&quot;2&quot; _
366366
)
367+
&apos;Analytical Geometry
368+
Run( _
369+
&quot;Distance between two points&quot;, _
370+
&quot;ROUND(DISTANCE({{3.1441;0}};{{4.45415;3.1441}});4)&quot;, _
371+
&quot;3.4061&quot; _
372+
)
373+
Run( _
374+
&quot;Lines intersection&quot;, _
375+
&quot;MROUND(LINESINTERSECT({{12;0};{0;5}};{{0;1.31004};{0.79693;3.22267}});2)&quot;, _
376+
&quot;{{1.31;4.45}}&quot; _
377+
)
378+
Run( _
379+
&quot;Parallel line&quot;, _
380+
&quot;MROUND(PARALLEL({{12;0};{0;5}};{{3.1441;0}});2)&quot;, _
381+
&quot;{{3.14;0};{0;1.31}}&quot; _
382+
)
383+
Run( _
384+
&quot;Perpendicular line&quot;, _
385+
&quot;MROUND(PERPENDICULAR({{12;0};{0;5}};{{3.1441;0}});2)&quot;, _
386+
&quot;{{3.14;0};{4.45;3.14}}&quot; _
387+
)
367388
SF_Exception.debugprint(&quot;Passed tests:&quot;,sAcum)
368389
SF_Exception.debugprint(&quot;Failed tests:&quot;,tTotal - sAcum)
369390
SF_Exception.debugprint(&quot;Passed tests Ratio:&quot;,Round(100*sAcum/tTotal,2) &amp;&quot;%&quot;)

src/LO Basic/VBAExpressionsLib/UDFunctions.xba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Option VBASupport 1
66
option ClassModule
77
&apos;#
88
&apos;////////////////////////////////////////////////////////////////////////////////////////////
9-
&apos; Copyright © 2024 W. García
9+
&apos; Copyright © 2024-2025 W. García
1010
&apos; GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1111
&apos; https://github.com/ws-garcia
1212
&apos;////////////////////////////////////////////////////////////////////////////////////////////

src/LO Basic/VBAExpressionsLib/VBAcallBack.xba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ option Compatible
55
option ClassModule
66
&apos;#
77
&apos;////////////////////////////////////////////////////////////////////////////////////////////
8-
&apos; Copyright © 2024 W. García
8+
&apos; Copyright © 2024-2025 W. García
99
&apos; GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1010
&apos; https://github.com/ws-garcia
1111
&apos;////////////////////////////////////////////////////////////////////////////////////////////

src/LO Basic/VBAExpressionsLib/VBAexpressions.xba

Lines changed: 374 additions & 22 deletions
Large diffs are not rendered by default.

src/LO Basic/VBAExpressionsLib/VBAexpressionsScope.xba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ option ClassModule
77
Option Base 0
88
&apos;#
99
&apos;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10-
&apos; Copyright © 2024 W. García
10+
&apos; Copyright © 2024-2025 W. García
1111
&apos; GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1212
&apos; https://github.com/ws-garcia
1313
&apos;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

src/LO Basic/VBAExpressionsLib/VBAstrHelper.xba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ option ClassModule
77
Option Base 0
88
&apos;#
99
&apos;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10-
&apos; Copyright © 2024 W. García
10+
&apos; Copyright © 2024-2025 W. García
1111
&apos; GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1212
&apos; https://github.com/ws-garcia
1313
&apos;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

src/LO Basic/release-notes_en.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# A single one
2-
## New function
3-
- [x] `INSTR`
1+
# Embracing analytic geometry basis!
2+
## Setting changes
3+
- [x] The `GallopingMode` option is disabled by default.
4+
## Bug fixed
5+
- [x] Broken tokenization for expressions involving evaluable literal strings.
6+
## New functions
7+
- [x] `DISTANCE`: computes the distance between two Cartesian points.
8+
- [x] `LINESINTERSECT`: computes the intersection point between two lines defined by two points each.
9+
- [x] `PARALLEL`: computes two points representing a line parallel to the given one and containing the given point.
10+
- [x] `PERPENDICULAR`: computes two points representing a line perpendicular to the given one and containing the given point.
411

512
## Download
6-
https://github.com/ws-garcia/VBA-Expressions/releases/download/v3.2.10/VBAExpressions.oxt
13+
https://github.com/ws-garcia/VBA-Expressions/releases/download/v3.2.11/VBAExpressions.oxt

src/UDFunctions.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Attribute VB_Exposed = True
1010
Option Explicit
1111
'#
1212
'////////////////////////////////////////////////////////////////////////////////////////////
13-
' Copyright © 2022-2024 W. García
13+
' Copyright © 2022-2025 W. García
1414
' GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1515
' https://ingwilfredogarcia.wordpress.com
1616
'////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)