VBA Rubberducking

This chat has moved to Discord: discord.gg/MYX9RECenJ
Jan 30, 2023 21:48
:)
Jan 19, 2023 03:14
Ah, OK thanks...so it's a substantial impact. But also sounds like it is probably not worth spending much mental time on until the RD3 design/implementation is a lot further along. Gotta say, the progress on RD3 is really quite amazing. :)
Jan 19, 2023 02:42
Just curious about the impact of the new RD3 architecture on the existing RD test suite. For testing, will the LSP and DB be in separate processes for testing as well?...and, regardless of where they reside, would they be spun-up/down for each test?
Jan 1, 2023 08:46
Onward to 2023! Happy New Year all!
Dec 24, 2022 02:35
@MathieuGuindon Yes - Merry Christmas indeed! Gotta say...it's been awesome watching RD3 progress reports and screen shots scroll by. Happy Holidays to all!
Oct 25, 2022 18:08
@Duga I'll come back to this one if it's not picked up during Hacktoberfest.
Oct 21, 2022 17:54
@MathieuGuindon I've made progress on the 'numerous' inspection results regarding issue described in #6039. Hope to have a PR soon-ish to explain/describe the issue. Traveling atm, so it might be tomorrow or the next day.
Oct 20, 2022 15:54
@Duga @MathieuGuindon That would be awesome. Started debugging for what I thought would be an obvious and quick solution late last night, but got nowhere and ran out of steam.
Oct 15, 2022 14:16
You will need to have Excel load a debug version of the RD dll.
Oct 15, 2022 14:14
In VS, attach to the Excel process after RD has loaded. Set breakpoint(s) in the C# code and invoke logic in the VBIDE that would call C# code of interest.
Oct 15, 2022 14:03
Debug=> Attach to Process... in visual studio. That's how I/we test RD code from within the VBIDE. I think it is the process you are describing.
Oct 9, 2022 19:36
@Greedo This is awesome. I too have been trying to wrap my head around the RDv3 descriptions and how it might be organized (with little success). Thanks for sharing.
Oct 5, 2022 04:05
@Duga not sure resolver is the correct label.
Aug 12, 2022 14:12
Sure! I've recently been trying to keep my line lengths around 80-ish lately - creates all sorts of new formatting 'decisions'. :)
Aug 12, 2022 14:09
@BigBen FWIW I've landed on lining up the parameters the same as the function body much like your initial example - except that I would include the function's ') As ShapeRange' statement on the same line as the last parameter. Then, I add a blank line between the last line of the function declaration and the first line of the function body for a clear distinction between the end of the declaration and the start of the code.
Jul 20, 2022 15:49
@Duga miss a step in your PR process...pay the price.
May 17, 2022 20:17
@Vogel612 Thank you!! That worked perfectly :)
May 16, 2022 23:41
:)
May 16, 2022 23:17
I'm interested in attempting one of the up-for-grabs' PRs. But, I'm having no luck
figuring out how to fetch/pull the PR to my local repo. I've tried the various answers that I found at https://stackoverflow.com/questions/5884784/how-to-pull-remote-branch-from-somebody-elses-repo?rq=1 but have had no success. Since these were all upvoted answers it must be a setup/configuration thing.
May 12, 2022 18:17
Yeah...that was EF
Apr 28, 2022 13:27
In general, I prefer PredeclaredId classes to modules because PredeclaredId member references must be fully qualified.
Apr 28, 2022 13:22
As a 'simple' utility class/module - it would seem (to me) that one has no advantage over the other.
Apr 28, 2022 13:20
@FreeMan Yes - PredeclaredId classes provide a default instance that can be used directly. For the most part, a PredeclaredId and a regular module can be used in an identical manner and both reside in the global namespace. That said, PredeclaredId class modules cannot be used as macro entry point - which is a key difference. Another is that, unlike regular modules, PredeclaredID classes can expose/implement interfaces as well as generate and handle events.
Apr 22, 2022 22:10
@IvenBach Sorry to hear that. My condolences.
Apr 21, 2022 17:10
FWIW - When I request it's Definition' from the VBE, it identifies Color` as a member of LoadPictureConstants in the ObjectBrowser
Mar 26, 2022 19:14
They are static strings within TestCodeGeneratorStatics.cs in the Unit Testing Project
Mar 16, 2022 21:33
@FreeMan Yes...I was wondering if perhaps the Parse somehow did not complete. Moving the Declaration to below the Private Type Declaration just gave the Parser another run at it - and enough time had passed that other changes probably had been made.
Mar 16, 2022 13:47
Yeah...definitely a bug
Mar 16, 2022 13:42
Grabbing a straws...maybe move the Declaration below the Private Type Declaration
Mar 16, 2022 13:34
@FreeMan Maybe declare as Public or Private rather than Dim?
Feb 22, 2022 05:25
That really looks awesome!
Feb 9, 2022 15:54
:)
Feb 9, 2022 15:43
SFSOD? Save for some other day?
Feb 9, 2022 15:28
Sooo - my system keeps coercing me to upgrade to Windows 11...anybody here know of reasons to resist?
Jan 17, 2022 16:14
Or did he indent to close the intender issue?
Jan 17, 2022 16:11
:)
Jan 17, 2022 16:02
Dropping in a 5600 line module has to make an audible sound.
2
Jan 17, 2022 15:50
Wow...is it the only module in the project?
Jan 1, 2022 19:55
Here's to putting both 2020 and 2021 behind us. Happy New Year!
Dec 23, 2021 23:45
Happy Holidays!!
Dec 14, 2021 13:05
@SimonForsberg Looks to me like the comment was edited that many times.
Oct 19, 2021 16:57
Note to self: work on chat markup skillz
Oct 19, 2021 16:56
shrugs shoulders
Oct 19, 2021 16:55
I was about to say - that vba module is way beyond my skill set.
Oct 19, 2021 16:43
I'm guessing Controls on a worksheet
Oct 19, 2021 16:42
'sheets that represents "code" and not "data"'...could you elaborate?
Oct 19, 2021 16:39
Just did an experiment where I imported everything from my repo into an empty workbook. It succeeded except that some References are not restored - just couldn't compile immediately. Thought I had tried that before with no success(?)... I may have to rethink my git workflow - my biggest concern was recovering from a corrupted xlsm.
Oct 19, 2021 16:05
Yeah...just kinda taking a poll. I do...but it comes with some downsides. I elected to store them because I just end up managing copies of those files somewhere else..but that comes with some downsides as well.
Oct 19, 2021 15:35
@FreeMan do you keep the .accdb. .xlsm, etc files in your repository as well as the exported text files?
Oct 5, 2021 18:43
Agreed!