« first day (1833 days earlier)      last day (1347 days later) » 

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 3 issue comments.
[Minesweeper] New Users: 20, Games Played: 175, Bombs Used: 113, Moves Performed: 20395
 
 
9 hours later…
8:35 AM
0
Q: pivotfield.orientation = xlhidden does not work

DutchArjoI have a vba code which checks all the pivots in specified worksheets to add a range of pivotfield to the values/data section of the pivot because the pivot headers change every 4 weeks. I have 6 pivots where this code works perfectly, but 2 pivots where I keep getting an error. I have tried t...

 
 
2 hours later…
10:57 AM
@KySoto in the call to EXEC [SSISDB].[catalog].[create_execution] one of the parameters is @reference_id=@environment_id where @environment_id is set based on a parameter passed to the sproc.
 
11:10 AM
:-D Well. It's one of the most complicated languages. For example
1 finger ... prst
2 fingers ... prsty
3 fingers ... prsty
4 fingers ... prsty
5++ fingers ... prstů

It depends on what "family" is the word derived. We've got 3 family trees
1 - Male ... Pán (mister), Hrad (castle), Muž (man), Stroj (machine)
2 - Female ... Žena (woman), Růže (rose), Píseň (song), Kost (bone)
3 - Middle ... Město (city), Moře (sea), Kuře (chicken), Stavení (building site)

And each of them have 7 cases depending in which contex you speak of them, like:
@Hosch250 I'm not sure to be honest... But for most cases it depens on the first five numbers... 1-5, then it's the same word as the 5th. :)
 
@SonGokussj4 O_o
 
Okay, so I noticed that we've got only 3 types of plural.
1
2-4
5
:-)
 
Dude, seriously, so many Americans screw up English and we don't have any word genders, most of us wouldn't stand a chance!
 
11:31 AM
@FreeMan ( ͡ᵔ ͜ʖ ͡ᵔ )
 
OK, I've just gone from the old-skool, original smilies :-) (or shortcut to :)) to the "newer class" O_o. Don't be throwing all that extra newfangled... Arabic? text based smilie stuff at me!
#OneStepAtATime
 
I was using this -> ^_^ <- since Ragnarok Online 1 :-D Man that's too long. I have certifications for using more advanced stuff now :-D
 
I was using :-) with Compuserve when 2400 baud was the new hawtness
wow I had no idea. You gotta stand waaay back and cross your eyes to make sense outta some of those.
ლ(ಠ益ಠ)ლ
 
( ͡° ʖ̯ ͡°)
 
11:49 AM
Someone said it out loud! And on Academia.SE, even!!
2
A: Are athletes' college degrees discounted by employers and graduate school admissions?

Dan BryantSpeaking from the perspective of hiring in industry, I've neither asked for nor considered GPA as a factor when evaluating a resume. The reputation of the school plays a small role (commercial for-profit schools, in particular, warrant further scrutiny), but mostly for an entry level position I'...

 
12:28 PM
DBA.SE to the rescue
7
Q: SSIS 2012: The environment reference n is not associated with the project

Mark FreemanI have a package that I am updating. The package is executed by a Job Agent job. After deleting the package and then deploying the new version, I run a script that executes any necessary [create_environment], [create_environment_reference], [create_environment_variable], and [set_object_parameter...

seems I'd failed to add my 2nd environment to the package. The Mar '16 answer indicates that the assignment can get lost when redeploying the package, but I'll bet I forgot to add it in the first place.
Now, unfortunately, my sproc doesn't seem to work at all when directed against my Prod environment. I wonder if there's something hardcoded into the package that's pointing to dev and it's not picking up the 'Prod' server assignment somewhere...
 
12:42 PM
Yeah, I think that's the problem. My connection manager:
My Prod environment specifies that should should be Reporting instead of ReportingDev. How do I parameterize that?
had it "parameterized" to a fixed value. That's not so good...
 
1:27 PM
Don't you put your DB name in the connection string?
 
well... I've been messing with that.
At first I thought I needed just the DB name and that didn't work. Then I tried putting in the full connection string, and that doesn't seem to be working either.
and now, one of my connections seems to have the ConnectByProxy parameter set and I don't seem to be able to unset it.
carp - Initial Catalog is what I want. The connection to the server remains static, it's the database on that server that's changing.
I'd seen Initial Catalog when I was setting it up, but that didn't register with Database, which was the only term I knew at that point.
 
2:13 PM
@FreeMan you "unset" an environment variable by expanding Expressions in the connection property and deleting the value for the variable you want to delete. When you leave that field, you get a warning that it will be deleted and click OK.
#Intuitive
 
@FreeMan i wasnt talking about in your procedure call, i mean IN the ssis package
oh further reading in the thread says you didnt actually associate your production environment with your package
le derp
 
@KySoto I did, just not properly.
51 mins ago, by FreeMan
At first I thought I needed just the DB name and that didn't work. Then I tried putting in the full connection string, and that doesn't seem to be working either.
49 mins ago, by FreeMan
carp - Initial Catalog is what I want. The connection to the server remains static, it's the database on that server that's changing.
 
2:28 PM
Alrighty
so it looks like you figured it out hten?
 
getting there.
seems I failed to create an sproc in production that I'm using... Got that sorted, continuing testing in prod
^deployment procedures could use a spiffing up...
Changed the default parameter value in SSIS & it ran in prod! now to test it via the sproc call
 
2:52 PM
YEEEEEEEEEEESSSSSSSSSSSSSSSSSSSS!!!!!111!!1!!1!1OnE!!!!
success
and it works at the same level in Prod as it does in Dev.
 
Well that’s good.
 
Still needs some post-load reporting work, but I'm most satisfied with the progress so far.
and just in time, since I have to get the report to mah boss today!
BIG thanks again to @this and @MathieuGuindon for the guidance and questions answered, and @all for the various random questions, suggestions & nudges in the right direction and the overall support & encouragement!
 
3:10 PM
if i need to do line replacement on a module
do i need to have the VBIDE reference checked?
 
3:23 PM
@FunThomas - its a downside to VBA that you can't overload functions. That's basically how you'd handle this in any other langague. :-/ — ArcherBird 13 mins ago
love that I was able to masterfully parry this attack on VBA
I mean, I'll take the reputation :-D. This is off topic so I'll probably remove this comment in a second, but just want to say thank you for Rubberduck. I use it literally every day! — ArcherBird 16 secs ago
 
 
1 hour later…
4:56 PM
You're developing a dedicated trail of duckling behind you with RD.
 
5:15 PM
I had to ask myself why string interpolation doesn't work in VBA. I then realized it's what I was asking...
 
5:49 PM
lol
 
6:17 PM
at some point my F8 stopped working.
Shift + F8 works, though.
 
You can't F8 to step into/through your code anymore?
 
I have a feeling that something something messed up the keyboard shortcut in VBIDE but I have no idea how I would get there.
nope.
 
Time for a new keyboard.
 
then I wouldn't be able to shift + F8, either.
I mean, if it's really a broken F8 key, then that shouldn't have worked, right?
 
Touche.
#Words
 
@this See, I'm not the only one! In the VBIDE, I can no longer drag the execution point to a new line, I have to right-click and select Set Next Execution (or whatever).
I think the VBIDE is just getting a bit senile in its old age.
 
was that a new thing?
 
ttqw
 
mine started like yesterday or so, I think
 
no, mine's been like that for probably > 1 year
 
6:51 PM
Given the excellent Rubberduck article on 'Private Type This' in VBA. If I'm using 'This' to preserve a variable that is used only in a single sub, is it better to make the variable static to the sub rather than module level or am I guilty of attempting premature optimisation. The context is a scripting.dictionary type object which is used readonly after initialisation.
 
if the variable only makes sense in the context of that procedure, then it belongs to that procedure
if the variable is only used in one procedure but would make sense in the context of a new procedure in that module, it's probably better off as module/instance state
 
7:10 PM
right?
 
Static variables it is then. Thanks.
 
@MathieuGuindon is event handle for Worksheet_FooBar the correct term for VBA?
 
*handler
 
> **Rubberduck version information**

Version 2.4.1.4734
OS: Microsoft Windows NT 10.0.17763.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.4834.1000
Host Executable: EXCEL.EXE



**Description**
Inspection results show a false positive for the 'Assignment without Set' inspection when setting the ForeColor property of a UserForm Label.

**To Reproduce**
1. Insert a blank UserForm.
2. Add a Label to the UserForm.
3. Add the following code to
 
dang is it just me having a short fuse today, or...
MyUDF is just placeholder for your own code... — Mathieu Guindon 43 secs ago
 
huh, GitHub recognizes "duplicate of" now
 
7:46 PM
@MathieuGuindon that was a very gregarious follow up to that. It could have gone explosively wrong.
 
@MathieuGuindon I got such a kick out of "We're in 2019, don't write code like it's 1985."
 
@BigBen does that mean dont write the most efficient code you can possibly write?
 
Has anyone ever seen SQL Server not import complete data when using SELECT * FROM OPENROWSET? I'm discovering (now that I'm using SSIS to load the data) that some of the rows I'd imported previously appear to be duplicates (based on date/time stamps) but the older loaded version has a NULL where the newer loaded version has legitimate data.
 
7:55 PM
@BigBen i was just being a smart ass, but yeah, line numbers... -_-
 
omg, I just had to refactor 4000 lines of VBA I inherited that had 1985 written all over them. Hungarian notation, reliance on ActiveSheet and ActiveCell, procedures that were hundreds of lines long.
 
@BigBen :offers-condolences:
 
@IvenBach much appreciated. Though a lot of it should be done in Python or something a little more suited to the task. But that was a no-go.
 
I fully understand now that the highway to hell is paved with OPENROWSET, I'm just curious is this is an issue anyone's ever noticed before.
 
Honestly I don't know. I do know that w/ xml, invalid selections are provided as NULLs
whether that's the case w/ OPENROWSET, I honestly don't know. The performance and administration problems were enough to deter me from looking further.
 
8:00 PM
@FreeMan Much faster than the stairway to heaven. Easier on the knees too.
 
@BigBen what would Python buy you?
 
@this Let's just say I was parsing a very badly structured text file. I should not be using Excel VBA to do that.
 
I would question using any programming language to parse a non-structured text file. ;-)
 
how was said POS text file being generated?
 
that's fair:) This is client data, the format of the file was set up probs 40+ years ago
 
8:04 PM
hmm
 
imagine a text file with a table of contents, headers, page numbers, whitespace...
and the occasional data table I actually want to extract
 
maybe it would be worth it to try to get that file reformated
 
I think it's been tried, to the tune of a billion dollars or so of effort
 
i know that we sometimes try to get our venders to send us useful barcodes on labels and such
how in the living...
O_o
 
large client.
with extremely poor data quality.
 
8:05 PM
a billion
 
I exaggerate, but in the hundreds of millions probably
 
still
i just cant comprehend how they could have such crap data quality AND still be in business
 
hahahahahahaha you'd be surprised
 
i guess
is it at lest consistently crap?
so you can try to figure out the pattern of crap to filter out?
 
if it's ISO-9000 certified, then yes.
 
8:07 PM
more or less. The data tables can be identified by their headers.
 
lol
man, i feel sad for you sir
 
But there are typos, and multiple table structures, and interspersed page numbers.
 
@BigBen someone's not actually typing it in by hand?!?
 
thats vomirific
 
oh they do occasionally make manual edits I think.
 
8:09 PM
X_X
I salute you, good sir.
 
so what is this "data" being used for?
 
"budgeting" - because when you put garbage in, you get ... garbage out!
 
ugh
hence excel
 
back to the comment that started the whole rant - we're working like it's still 1985.
 
personally id probably still put this data crap into a table
or however many
assuming you even can
i mean, this is supposed to just be reports and whatnot right?
 
8:11 PM
@this I don't believe it's an invalid data issue. It loaded just fine using SSIS and checking some of the files, I'm loading the correct info.
I suppose it could be that I had invalid data when I DL'd it months ago, and, now that I've DL'd a new file (containing the old data) the data is corrected...
 
Not sure it's possible. All I get to work with is a text file 60,000 lines long.
 
that you parse and import into excel, right?
 
yep
 
@BigBen A common refrain I've learned.
 
i have a file i have to parse and import too, but its just data generated by this application looking at wafer slices that have been doped and then had some metal put on em
but anywho, yeah i dump the data into a table
based off the file name
assuming your file names are unique
 
8:18 PM
Basically the file looks like a long document. It has a table of contents, a header, footer, indentation, index, etc. It looks like it should have been created in Word, except it's a text document. I have to line-by-line Trim all the whitespace, then parse the line based on keywords...
so my output is a table, but it takes a long while to get there.
 
interesting. A lot of my ID lines (Int(1,1)) are sequential. It's like it had a hard time reading the file and screwed up 6, 8, 10 rows of data, then figured out what it was doing and flew right for a bit before it got screwed up again...
 
8:41 PM
could the add/remove references dialog load the list of available libraries on a background thread and show up faster with spinning ducks in the library list box, or the COM stuff involved absolutely must run on the UI thread?
 
I can't remember if there's typelib API involved, but I'm thinking no
In which case, it can run in a background thread
 
that would be nice.. the delay isn't particularly annoying, but significant enough to warrant doing something about it
 
> The "Import" functionality is currently visually rather far from the "Add Module" functionality:

![image](https://user-images.githubusercontent.com/5751684/59466227-c8b29d00-8dfa-11e9-80eb-2ff06c1be6a2.png)

Meanwhile in Visual Studio, Add -> Existing Item... is right on top of the list of available item types.

Let's leave "Export" grouped with "Remove" (they do go hand-in-hand), and move "Import" under the "Add" menu, both in the context menu and the "+" dropdown.
 
@this maybe just parts of it need to run on the main thread
 
I'm thinking the bulk of the work is collecting the libraries
 
skimming, I don't see any typelib API; just plain COM collecting stuff
 
heck, even the VBE's own dialog has a little delay in showing up
 
8:50 PM
(through not as pronounced)
 
I can't remember off the cuff if IVBProject is safe to use in other thread
but assuming it isn't, we can just cache the stuff out of it (mainly the References, I guess)
then delegate work to a backgroud thread.
 
it's a COM wrapper, so it would forward its calls to the wrapped COM object -> unsafe
 
not unnecessarily unsafe, AIUI. COM automatically will marshal to correct thread (which means a performance penalty but not boom-boom)
but don't quote me on that. I'm inclined to agree that it's best done on UI thread just to avoid surprises.
 
We use IVBProject outside the UI thread a lot.
 
8:59 PM
during the parsing?
 
hm, I suppose it's fine then. ...right?
 
it would work, but not without a perf penalty, I think.
because COM has to do the context switching under the hood
 
We rebuild the ProjectsRepository on a background thread.
 
> Nice idea. Could I also suggest the label gets changed from 'Add Module' to simply 'Add'? 'Module' doesn't really fit with UserForms for example, nor with ActiveX designers (if we ever want to support them for ODE) nor with several of the VB6 component types (if we want to be a little consistent between VBA and VB6)
 
@Duga also makes it closer to modern VS, but that's fairly unimportant
 
9:07 PM
yup
 
@Duga tempted to grab that one for myself... been way too long since I PRd anything for RD, every time I try recently I get caught in a rabbit hole and don't finish.
that one looks like perfect commute-fodder...
 
fwiw, Add feels too naked to me. Add Component might be better
 
I like that
 
component would fit better with VB terminology, but still, I think its redundant. Part of the problem imho is the width of the menu, fmm we could easily reduce to 'Expand all' and 'Collapse all', which would make the menu thinner, which would put the submenu glyph closer to the 'Add' label. Just my 2c...
UX is hard :-)
 
^
FWIW, in my mind, if I see Add..., I'm going to expect a submenu. If I see Add, I'm going to be asking "add what?"
But my mind is also known to be uh... flaky. So not exactly the paragon to model UX around.
 
9:19 PM
I think ... is for dialogs not submenus?
 
@this if I see Add... I expect a dialog
 
That, too.
I think I've seen it go both ways
 
in MS apps?
 
but never just as a button.
 
9:20 PM
Browse...
 
53 secs ago, by this
But my mind is also known to be uh... flaky. So not exactly the paragon to model UX around.
 
@MathieuGuindon that's basically Build... I guess.
At least in Access, it always means you get a builder of some kind.
(could VBIDE be thought of a builder? I guess maybe.... stretching it, though)
 
by rights, all tree menus should also have a bolded entry to indicate which is the default action for double-click
 
oh, that'd be nice
 
9:23 PM
we'd need to get more contextual though - e.g. folder nodes, if it's expanded, hide the 'Expand' item but show and bold the 'Collapse' item
atm we don't even have those items
because of limited contextualisation
saying that, modern VS doesn't bother with expand\collapse on right-click, i think because its such a well-known action
or maybe just because VS menus are already big
I've definitely seen it done though, perhaps its an older pattern
UX is hard...
 
^
 
so I guess one question is - what vintage of UX are we aiming for? Needs to fit primarily with the VBE, just prettied up I guess...
I'm waffling. Been a long week :-(
Working from home tomorrow, not commuting till Tuesday now. If that issue is still unclaimed by then, I'll grab it.
 
@this got a minute? I'm facing "INSERT EXEC cannot be nested"
 
9:40 PM
thank you for reminding me why INSERT...EXEC makes me sad.
:D
what's up?
 
I need to query a [dynamic] Sage DB (linked server) to retrieve fiscal year & period for a given date
so I put that in its own stored procedure
now another SP is invoking this, and ...well, can't select the results
 
what is the skeleton of hte first SP like?
 
eh, tomorrow problem (sorry lol)
 
no worries.
 
10:03 PM
On an unrelated note (just got a reply from Andrew Lockhart (not sure who that is) re Charles Williams' PerfMon request) I wonder... could our EasyHook hooks on VBA7.DLL be able to pick up user code invokes? This guy is somehow hooking into the interpreter: github.com/desva/Release
> It really looks like VBARubberDuck is getting some momentum now, which is great.
ttgh
 
 
2 hours later…
11:39 PM
Oh Florida. You never cease to amaze me wsbtv.com/news/national/hot-topics/…
A good visual for by reference vs by value twitter.com/i/status/1138528829692174337
 
debugger, call stack
 
@IvenBach for what it's worth there's also "call by value-return" and other weirder semantics
 
AIUI, VB(A/6) debugging is handled at the Windows level, similarly to VC. "Just" need to grok, and we can make a start on breaking in.
Debugger access seems to be the final frontier? If we could own break mode, we could stop trying to hijack the VBE, and simply replace it. Thoughts?
(minor trivialities like the forms designer aside...)
;-)
Would need to be able to call the compiler too ofc
And the storage subsystem
HHCIB? ;-)
 
11:59 PM
^
 

« first day (1833 days earlier)      last day (1347 days later) »