what I usually do. is paste the whole thing into XOJO
delete the END FUNCTION line
copy the signature (between the () ) and paste it into the inspector
and type in the rest[/quote]
Thanks. That’s pretty awkward to be honest. You can’t paste multiple methods simultaneously? Maybe into a text file and then import it into Xojo?
Thanks, I’ve tried this (on a Mac) and the method isn’t created in the window I had selected. Xojo seems to take the paste with no effect.
Ah, okay, I got it to work by right-clicking on the Window in the Contents and choosing Paste. But it only pastes the first function on the clipboard. If there are many functions in a row, only the first is added.
It worked sometimes ago on OS X, then I needed to press the Option key while selecting the Paste MenuItem or drop onto what was the Navigation pane, and now it does not works at all like Dave said earlier.
Code selection in the Code Editor and activating the ContextualMenu Add As Method (or so) does not wk-orks too (as I expect it to do). I think the code is pasted in the declaration field (I do not recall).
Becasue nobody complain, I was thinking that I was suffering to some disease ;-
Why in the world would that thread starter (whoever they may be) think that should be a “Pro” only topic? That type of thing is why I did not think a Pro only forum was a good idea.
BTW In general (at least in the forum for the rest of us) I don’t find the discussions to be as interesting or as in depth as they were on the NUG… I learned a lot on the NUG. BTW I felt the same way about the old REAL Forum.
Now I don’t know if that is because of the existence of the Pro forum or some other reason.
Karen, I am sorry for having pointed to a Pro forum discussion. Not sure why a hobbyist should criticize one of the tools professionals use to communicate, though. Especially when most of them go out of their way to share their knowledge and assist all in the general forum.
Let me echo the solution offered by Norman, to a question that was very similar :
Q : [quote]I have 100’s of classes that i need to get into Xojo, currently they are in a different language which i can get them from as its a text file.
is there a way to paste that text into Xojo and have it create the class object?[/quote]
I suggested modifying an XML project, but
A : [quote]XML really sucks for this
vcp is much simpler
property key01 As Integer