View previous topic :: View next topic
|
Author |
Message |
harpreet9
New User
Joined: 24 Oct 2006 Posts: 9 Location: delhi
|
|
|
|
Hi,
Can anyone please let me know that is there a way in the coolgen where I can copy a few lines from one procedure to another?
I mean suppose there are two procedures as A1 and A2, and I need to copy some part of code in A1 to A2.
Please help
thanks
bye |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
Hi,
You can copy the whole thing from A1 to A2 but not some parts
Steps
Open the procedure A1
Right click on the name of the Proc at the begening of the code (i.e. just before Imports)
click on Diagram>copy
You will get another screen with which you can continue. |
|
Back to top |
|
|
pbc3199
New User
Joined: 28 Sep 2007 Posts: 7 Location: Malaysia
|
|
|
|
Not really sure on coolgen, but in advantage gen and allfusion gen, we can copy some parts of coding using xcopy. |
|
Back to top |
|
|
skgupta81
New User
Joined: 11 Nov 2008 Posts: 27 Location: Canada
|
|
|
|
Through XCOPY one can copy statements from one proc/CAB to another proc/CAB.
1: click on the place where you want to copy the lines in destination proc
2: select the part of code which you want to copy from source proc
3: click on XCOPY button.
4: Choose a destination proc
5: your code will be copied.
Cons: the code will create all the views automatically which have been used in those statements.
So be careful when you do XCOPY. |
|
Back to top |
|
|
|