2015: A Paste Oddity

Not a huge problem, but I have found that when copying a Close() event handler and pasting it into another window, the paste doubles up the ‘wrapper’ code

By which I mean if the original is this:

Sub Close() DoCloseStuff end sub

I copy the event in 2015r3

I select another window, and paste

The Close event that gets created actually CONTAINS the code above, instead of just the DoCloseStuff

What is being pasted (I have tried this in a text editor) is

Sub Close() Sub Close() DoCloseStuff end sub end sub

Dosn’t happen here with 2015r3 on OS X 10.9 (btw, I like the title of your post).

BTW: where do you do the Paste ?

In the target Close Event (in the Code Editor of the Close Event) ?
If so, this is normal behavior.

Or in the Navigation pane ?
If so, there is a problem.

I select the event in the navigator page on the left and COPY
Then select the new window name in the navigator on the left, and choose PASTE

Sorry Jeff, works fine here with 2015r3.

I open a project,

Add a Close event with DoCloseStuff inside,
Click in the Close Event in the Navigator Pane (to make it selection color near to black),
Add a new Window (and it is selected by default),

I get the Event Handlers entry AND the Close Event with: DoCloseStuff as expected.

No need to apologise. :slight_smile:
Odd, is all.
Ive done all the pasting I need to, so its not a problem ongoing

Make sure the focus is on the navigator and that the selection line is Blue. If it’s Gray, then you’re pasting into the code editor, and yes, you would get this effect.

Topic title of the month award goes to…

Third movie in the 2001 film series… :slight_smile: