Foxtools – Editor _EDCUT

Version: 01.10.00 - last Update: Tuesday, October 13, 2009, 12:30:00

Previous ChapterFoxtools Home (Alphabetical TOC)Foxtools Home (Grouped TOC)Next Chapter See also:_EdCopy | _EdPaste

Foxtools Editor Support Functions


_EdCut() Cuts the highlighted text of the editor session passed in <nWHAND> parameter to the Windows Clipboard.

VFP Syntax

= _EdCut(nWHAND)


[in] nWHAND

Fox-window handle of the editor session to be closed.


VOID - no evaluable return value, coz always TRUE.


You do not need to open the Windows Clipboard manually. _EdCut() does the Windows Clipboard handling for you behind the scenes transparently. If no text is highlighted _EdCut() just does nothing.

VFP Example(s)

Opening an editor session, selecting some text and finally cutting the selected lines into Windows Clipboard:

*\\ Open editor session
*\\ There should be some text in TEST.TXT 
*\\ Start offset: row #1 
nEDstart = _EDSKIPLIN(m.nWHAND,0,0) 
*\\ End offset: row #10 
nEDend = _EDSKIPLIN(m.nWHAND,0,10) 
*\\ Highlight text block 
= _EDSELECT(m.nWHAND, m.nEDstart, m.nEDend) 
*\\ Finally copy selection to clipboard 
*\\ Close editor session 
*// Try to paste clipboard somewhere else

Previous ChapterFoxtools Home (Alphabetical TOC)Foxtools Home (Grouped TOC)Next Chapter