Copy data to memory

I have a coupons system, I would like to add a button next to the coupon number, so user can copy it and paste in another application. Is there any function does that?

I think the set clipboard content flow function would enable you to do what you are asking for!