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!

How Copy text or another to clipboard with VFP 1

Status
Not open for further replies.

FoxJunior

MIS
May 27, 2002
12
ID
Hi all,

i want to copy text from edit box into clipboard with press command button, not with press Ctrl+C...
and i want to paste from clipboard into edit box with press command button not with press Ctrl+V

is there syntax or command to solve them?...

Thank's
 
To copy text to the clip board use _ClipText. For example to put the string "Hello into the clip board use the following:
_ClipText = "Hello"

To extract information form the clipboard use the following
ClipboardContents = _ClipText

Just put the appropiate code behind your buttons and you shouldn't have a problem.
 
Hi FoxJunior,

In the Create a New Menu, but make it a "Shortcut" menu. Then, add these 4 options in the menu builder:

Prompt Result Options
CUT BAR # _MED_CUT
COPY BAR # _MED_COPY
PASTE BAR # _MED_PASTE
UNDO BAR # _MED_UNDO

Save the menu, and call it something like "EDITMENU"

Then, on any control that you want to use these options, in the control's "RightClick" method, put in:

DO EDITMENU.MPR

That will present & let you use the items, as they do in Fox, on your menu.

Best Regards from Panama,

Marlon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top