In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

How can I copy to clipboard ?

Xailer professional forum in English
Milan Mehta
Posts: 112
Joined: Sun Dec 27, 2009 9:54 am

How can I copy to clipboard ?

Postby Milan Mehta » Thu May 29, 2014 9:59 am

At some point, I wish to Put some text in the clipboard.
How can I ?
hb_gtInfo( HB_GTI_CLIPBOARDDATA, "sample text" )seems to be not working.
TIA
Milan.
joselalinf
Posts: 291
Joined: Thu Jan 31, 2013 1:10 pm

How can I copy to clipboard ?

Postby joselalinf » Thu May 29, 2014 10:25 am

Milan,
try this:
WITH OBJECT TClipboard():New()
IF :Open()
:Empty()
:SetText( "sample text" )
:Close()
ENDIF
END
Regards,
José Lalí­n
Milan Mehta
Posts: 112
Joined: Sun Dec 27, 2009 9:54 am

How can I copy to clipboard ?

Postby Milan Mehta » Thu May 29, 2014 12:10 pm

Yes it worked well. Thanks.
Milan.

Return to “English”