« first day (1571 days earlier)   

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 5 issue comments.
[Zomis/FactorioMods] 1 commit. 1 closed issue. 2 issue comments. 25 additions. 17 deletions.
 
@MathieuGuindon Hey
 
> The actual problem here is that the CodeString constructor taking an explicit selection removes the pseudo caret character at the selection and that the new position is computed as one to the right nonetheless. This means that we try to set the the position to the right of the code. This causes an exception we do not handle for some reason.
> @MDoerner linked commit moves that logic to TestCodeString - leaving that concern completely out of the "production" code path.
 
@Susi you do any VBA? or C#?
 
12:25 AM
guess not
 
@MathieuGuindon Actually i'm new here and i was just checking the rooms
 
:)
no problem! this one is where the Rubberduck devs hang out - we build an open-source plug-in that enhances the glorious VBE, which Microsoft abandoned since 1998
and there's plenty to work on, at every skill level
 
1:03 AM
> 3330 tests
uh, AppVeyor?
> Trial period expires in 3 days. Select plan to keep running your builds. After trial period is over only projects with public repositories will run.
If you have any questions or need to extend your trial feel free to contact us.
wait a sec, we're a public repository
#nosweat
 
 
2 hours later…
2:47 AM
Possibly because Bot-Rubberduck started using appveyor so they gave this new user a trial.
 
 
5 hours later…
7:43 AM
Hi, Are lLbound and cElements
both structs please? In [this](https://bytecomb.com/vba-internals-whats-in-a-variable/) is states the following:
consider the following snippet:

Dim myArray() As Long
ReDim myArray(1 to 2, -3 to 3)
myArray(1,-1) = 5
1
2
3
Dim myArray() As Long
ReDim myArray(1 to 2, -3 to 3)
myArray(1,-1) = 5

To the VBA programmer, no methods have been invoked. But behind the scenes the VB runtime has been busy. The ReDim statement invokes all of the following:
Call SafeArrayAllocDescriptor : Create the SAFEARRAY header structure
Set the lLbound and cElements properties on of each the two SAFEARRAYBOUND structures in the new SAFEARRAY’s rgsabound array.
I am trying to work out what the "Set the lLbound and cElements properties on of each the two SAFEARRAYBOUND structures in the new SAFEARRAY’s rgsabound array" refers to when stating "two SAFEARRAYBOUND structures"
I assume it means lLbound and cElements are SAFEARRAYBOUND structs?
*Please ignore the random 1 2 3 line numbers pasted there. Apologies.
 
7:57 AM
Side note: Does RD require .Net 4.6 and above?
 
8:23 AM
Yes, RD requires. Net 4.6 or above.
And, no, the article is not entirely correct in its statement. There is one SAFEARRAYBOUNDS struct, which is an array over tuples. In memory, the LBound and cElements alternate. Were these two struct containing the elements for all dimensions, you would see all lbounds and then all cElements or the other way around.
The meaning you understood is the right one. It is just that the sentence in the article is not completely correct technically.
Ok, I read it again. No, your understanding is not correct.
There are two instances of the struct SAFEARRAYBOUND, which is the tuple (cElements, lbound).
The example has two instances because the array has two dimensions.
 

« first day (1571 days earlier)