copy paste in forms [message #84060] |
Thu, 22 January 2004 23:04  |
Sun
Messages: 92 Registered: August 2002
|
Member |
|
|
Friends,
I work in client server architechture,
Forms 6i as front end and oracle 8i as back end.
In forms i would like to use copy and paste options like windows.
I have created a pop up menu with two sub items copy and paste.
In copy i am assigning the value of current item to a global variable.
In paste i have to find the item name and i have to paste it. Using the system.current_item i found the itemname also.
How to assign the global value to this current item.
Consider both the items are same datatype.
I could able to copy the value.
Any help provided to paste it will be helpful.
Thanks
Sun
|
|
|
Re: copy paste in forms [message #84104 is a reply to message #84060] |
Thu, 29 January 2004 15:54   |
SHANKAR.K.
Messages: 7 Registered: April 2003
|
Junior Member |
|
|
code for cut
------------
begin
:global.cut_value := :system.cursor_value;
end;
code for paste
--------------
begin
go_item(:system.cursor_item);
:abc_item := :global.cut_value;
-- where abc_item is the itemname
end;
better try this
cut
-----------------
begin
go_item(:system.cursor_item);
select_all;
cut_region;
end;
paste
-----------------
begin
go_item(:system.cursor_item);
paste_region;
end;
|
|
|
|