vbaidiot / ariawase Goto Github PK
View Code? Open in Web Editor NEWAriawase is free library for VBA cowboys.
License: MIT License
Ariawase is free library for VBA cowboys.
License: MIT License
Ariawase
にArrUnZip(仮称)
があると助かります。
ArrUnZipはArrZipの反対の機能になります。
配列の偶数、奇数の項をペアとみなし、そのペアを別の配列にします。
Array(Array("Coffee", "Beer", "Water"), Array(350, 500, 120))
↓
Array("Beer", 500%, "Coffee", 350%, "Water", 120%)
↓ ArrUnZip
Array(Array("Beer", "Coffee", "Water"), Array(500%, 350%, 120%))
Private Function TempArrUnZip(ByVal arr As Variant) As Variant
Dim i As Long, arrxA As New ArrayEx, arrxB As New ArrayEx
For i = 0 To UBound(arr) Step 2
arrxA.AddVal arr(i)
arrxB.AddVal arr(i + 1)
Next i
TempArrUnZip = Array(arrxA.ToArray, arrxB.ToArray)
End Function
Sub Sample20150219()
Dim arr As Variant: arr = Array("Beer", 500, "Coffee", 350, "Water", 120)
Debug.Print Dump(TempArrUnZip(arr))
End Sub
結果
Array(Array("Beer", "Coffee", "Water"), Array(500%, 350%, 120%))
上のような帳票を作る際、ArrUnZip
があるとはかどります。
ぜひ、ご検討のほど宜しくお願いします。
Log関数をテストすると8と16だけテストにひっかかります
----------------------------------------------------------------------------
KoffeeTwoTest
----------------------------------------------------------------------------
- Log_Test
[8] :
Expected: <8#>
But was: <8#>
[16] :
Expected: <16#>
But was: <16#>
============================================================================
0 succeeded, 1 failed, took 0.02 seconds.
Private Sub KoffeeTestRun()
Assert.RunTestOf New KoffeeTwoTest
End Sub
Public Sub Log_Test()
Dim v
For Each v In ArrRange(1, 500)
Assert.AreEqual CDbl(v), log(exp(1) ^ v)
Next v
End Sub
When compile cls file which contains long string, such as a sql query string with above 30 rows,
there will be raise an error and then compile fail
reproduce in excel 2010 and windows 7
I will remove CdoMail.cls. I'll cancel If more than three people are needed it. What do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.