|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
EasyC Copy & Paste
If a function is written within EasyC using the drag & drop coding blocks. Is there any way to copy the code within that function to another function so that you can modify it for a slightly different use? Or can you copy the whole function and give it a different name?
|
|
#2
|
||||
|
||||
|
Re: EasyC Copy & Paste
You can do both.
1.) Right click on your function can click copy function easyC will ask for a new function name. 2.) You can copy multiple blocks using shift / control just like any other windows app ![]() |
|
#3
|
||||
|
||||
|
Re: EasyC Copy & Paste
How about this.
Three programmers. Each with is own copy of EasyC. Each programmer working on a Function, and one MASTER CODE. Can we copy and paste a function from programmer #1 EasyC file to the MASTER CODE EasyC file? We tried running two instances of EasyC on the same laptop, and copy between the two applications, but that does not work.... We have "teams" of programmers and it's hard to share with each other, with out recoding the entire function in the MASTER COPY... |
|
#4
|
|||||
|
|||||
|
Re: EasyC Copy & Paste
Quote:
When you right-click on the user functions, you get two options. One is to make a new function. The other is to copy an existing function from another project. I think that does what you want. (You apparently can't copy the Initialize or Autonomous or OperatorControl functions, but a bit of creative copy & paste in both the source and target projects can work around that restriction.) |
|
#5
|
||||
|
||||
|
Re: EasyC Copy & Paste
Quote:
I see that if somehow I export a function in another project as a library file, I can then attach with it, macros, variables, and code. That might be the way to go to move massive amounts of functions around from team member to team member. |
|
#6
|
||||
|
||||
|
Re: EasyC Copy & Paste
If you save a project as a library it will import variables.
|
|
#7
|
||||
|
||||
|
Re: EasyC Copy & Paste
You could use the approach we are using this year. We have a total of 6 programmers each working on their own seperate parts of the code. To get around this, we have a "master program" which is just made up of seperate functions (in operator control, two functions are used, operator drive and operator arm for ex.) Each person works on their own seperate function, ex, I work on operator arm. I make any variables I use local variables, and when we import the function into the master code, outside of rewriting a couple of constants under the global category, it is pretty much copy and play.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MS Vista/EasyC & EasyC Pro | rswsmay | Programming | 1 | 25-04-2007 10:47 |
| Copy and Paste Rules | Yan Wang | Rules/Strategy | 2 | 13-01-2006 16:04 |
| pic: #1213 Undo Copy Paste | CD47-Bot | Robot Showcase | 1 | 14-02-2004 18:37 |