Page 1 of 1

mark copy paste

Posted: Sat Jan 22, 2022 9:54 pm
by franco
Is there a way to put a value from a table field automatically into the mark copy with something like ctrl+f7.
I need to right click and paste it into an external website text box. I can go my text box and mark and copy, but to slow and hard for clients to do.
Thanks in advance.

Re: mark copy paste

Posted: Sun Jan 23, 2022 1:30 am
by Claudio Ricardo
Hi... You can do:
Load Window Your_Form
On Key Your_Key_Combination Of Your_Form Action System.Clipboard := 'Value_you_can_put_in_clipboard'

Example:
Load Window Main
-------
On Key Up Of Main Action System.Clipboard := 'You have press key Up!' // <-- value stored in Window$ clipboard when press Up key

If you need copy image (.bmp, .jpg, etc.) to clipboard, BosTaurus library have nice functions.

Re: mark copy paste

Posted: Sun Jan 23, 2022 6:27 am
by franco
Thanks Claudio, Exactly what I needed. Works perfect.
On Key control+C Of Main Action System.Clipboard := invoice->serial_no //serial_no is field in table. I am on the record I need.