Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I use windows clipboard with Forms 6i

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
I would like to have a double_click event on a text box that copies the contents of the text box to the windows clipboard, and then use another double_click event on a different text box to past the data into the new text box. Can anyone point me in the right direction?

thanks

 
I figured out how to use copy_region and past_region to do a "simple" copy and paste. But...what Id like to do is have a list of employees on one side of the form and double-click in the employee last name and copy the last_name, first_name, middle_name from the three fields and have them past into the corresponding three fields on the other side of the form. The copy and past region builtins dont take any parameters so they can't be instructed to get all three fields and paste them.

any suggestions would be appreciated...

 
We do it by creating a comma-delimited list that is then copied to the clipboard using select_all and copy_region. We can then paste this into excel, for example. You could write PL/SQL code that concatenates the three fields to a (displayed) text field, select_all, copy_region, deletes the displayed text field and then pastes to the new fields by stripping out each part delimited by the commas.
 
Thanks, but Im trying to copy from an oracle table into another oracle table. I had thought about creating a composite "delimited" text box with lname, fname, mname, doe as text on the form and then copying that and somehow in the paste process break it back apart and stuff it into the appropriate fields, but it seems like there must be a better way...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top