How copy a field of a record on clipboard and show which string I have on clipboard ?
Falconi Silvio
How copy a field of a record on clipboard and show which string I have on clipboard ?
See samples\testclip.prg
THANKS
How do you get a ctrl c and ctrl v copy?
>How do you get a ctrl c and ctrl v copy?
They work for me.
Can you provide an small sample showing the problem?
James
mine drops the right number. 123456 pastes as 12345.
if you are using resources , add this to your resource
ES_AUTOHSCROLL
Hth
Richard
Thanks I'll give it a try.
it is simply
DEFINE CLIPBOARD oClp OF oApp():oDlg
MENU oMenu POPUP 2007
....
MENUITEM "Copia il codice utente in memoria";
RESOURCE "SM_CLIP1";
ACTION oClp:SetText( (cDBF)->CLUSUARIO )
MENUITEM "Copia la password in memoria" ;
RESOURCE "SM_CLIP2";
ACTION oClp:SetText( (cDBF)->CLCLAVE )
MENUITEM "Vedere la stringa in memoria" ;
RESOURCE "SM_CLIP3";
ACTION GetSomeText(oClp)
SEPARATOR
ENDMENU
ACTIVATE POPUP oMenu
Harvey,
>mine drops the right number. 123456 pastes as 12345.
If your field length is 6 (for the above example) the problem may be an artifact caused by the way Clipper handles the cursor (which was carried over to (x)Harbour). The cursor will be after the 5 when the entire field is full, rather than after the 6 as one might expect.
Richard's suggestion may solve it.
James