« first day (1928 days earlier)   

12:01 AM
RELOAD!
[rubberduck-vba/Rubberduck] 18 commits. 1 opened issue. 4 closed issues. 4 issue comments. 10787 additions. 2348 deletions.
[Minesweeper] Games Played: 67, Bombs Used: 46, Moves Performed: 9061, New Users: 6
 
12:58 AM
 
 
6 hours later…
7:16 AM
^ the shift of IT talent
 
7:43 AM
> **Rubberduck version information**

Version 2.4.1.4940
OS: Microsoft Windows NT 10.0.18362.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.12026.20108
Host Executable: WINWORD.EXE

**Description**

I'm getting the following inspection result, but the variable highlighted when I double click the inpsection report is not that referred to by the inspection report

Error: In a context that requires a value type, the expression 'Split(p.Value, mySeparator)' of object type
 
 
4 hours later…
@Duga Either the reported expression or the reported type seem to be off.
 
12:36 PM
Split returns a Variant, no?
 
It might be that the reported context is wrong.
I need to do some tests tonight when I am back at home.
The natural candidate for the error is p.Value.
I guess, p is of the type Kvp from the referenced c# library.
 
Actually that didn't make sense to me because it's that's not a C# type.
it seems to come from VBAExtensions.Kvp
 
However, I would like to double check that the reported selections, contexts and types are collected correctly.
 
Never mind. I'm blind. It has VBAExtensions.tlb before.
 
The thing is, that type makes no sense for the reported expression.
 
12:49 PM
It might be a good idea to ask for the interface definition.
 
> @SteveLaycock is it possible to share the interface definition for the Kvp? Knowing how the dispatch IDs are arranged may help clarify the issue.
 
1:06 PM
> No problem. I've attached the source code file. Please be aware that I am not a professional programmer have only previously coded in VBA (apart from some 6502 assembly and a small amount of ANSI C back in the 1980's doing image processing stuff for my PhD). This was my first foray into c# and it did take a few months googling and trial and error to get to the current state. I'm currently working up courage to put it up on code review for comment.


[Kvp.zip](https://github.com/rubberdu
 
@Duga there are no DispIds defined so there should be no default member for that class.
 
@this groan...
 

« first day (1928 days earlier)