Version: 01.10.00 - last Update: Tuesday, October 13, 2009, 12:35:00
Foxtools Editor Support Functions
_EDPASTE
_EdPaste() Pastes text from the Windows Clipboard into the editor session passed in <nWHAND> parameter at current caret position.
VFP Syntax
= _EdPaste(nWHAND)
Parameters
[in] nWHAND
Fox-window handle of the editor session to be closed.
Returns
VOID - no evaluable return value, coz always TRUE.
Remarks
You do not need to open the Windows Clipboard manually. _EdPaste() does the necessary Clipboard handling for you behind the scenes transparently. If there is no text on the Windows Clipboard _EdPaste() just does nothing.
VFP Example(s)
Opening an editor session, finally pasting Windows Clipboard content at caret position:
*\\ Open editor session nWHAND =_EDOPENFIL("TEST.TXT", 1) *\\ Caret offset: after character #10 _EDSETPOS(m.nWHAND, 10) *\\ Finally paste selection from clipboard = _EDPASTE(m.nWHAND) *\\ Close editor session – ask to SaveAs = _EDCLOSEFI(m.nWHAND, 2) *//