These API routines allow you to manipulate the Visual FoxPro text editor, the file open in the text editor, and the clipboard.
- _EdActive( ) API Library Routine
- Hides or shows the selection range or insertion point.
- _EdCloseFile( ) API Library Routine
- Closes the specified file while saving without asking, prompting before saving, or saving as another file.
- _EdCopy( ) API Library Routine
- Copies selected area to the clipboard.
- _EdCut( ) API Library Routine
- Copies selected area to the clipboard and deletes it from the editor.
- _EdDelete( ) API Library Routine
- Deletes the selected area. If there is no selection, deletes character at current pos.
- _EdGetChar( ) API Library Routine
- Gets the character at EDPOS.
- _EdGetEnv( ) API Library Routine
- Reads various editor settings.
- _EdGetLineNum( ) API Library Routine
- Returns the line number for the position EDPOS.
- _EdGetLinePos( ) API Library Routine
- Returns the EDPOS for the beginning of the line EDLINE.
- _EdGetPos( ) API Library Routine)
- Returns current editor POS, or returns anchor point if there's a selection.
- _EdGetStr( ) API Library Routine
- Gets the text between EDPOS and EDPOS inclusive, and places it in TEXT.
- _EdIndent( ) API Library Routine
- Indents the selected text by int tab stops. Int can be negative in order to format a hanging indent.
- _EdInsert( ) API Library Routine
- Inserts BYTES of TEXT.
- _EdLastError( ) API Library Routine
- Returns the error number of the last editor error.
- _EdOpenFile( ) API Library Routine
- Starts an editor session on this file.
- _EdPaste( ) API Library Routine
- Copies clipboard text into the editor at current position.
- _EdPosInView( ) API Library Routine
- Returns TRUE if the editor position is visible.
- _EdRedo( ) API Library Routine
- Redoes the most recent undo.
- _EdRevert( ) API Library Routine
- Reverts to a saved file.
- _EdSave( ) API Library Routine
- Saves the file without closing the editing window.
- _EdScrollToPos( ) API Library Routine
- Makes sure that EDPOS passed is on the screen, but doesn't move insertion point. BOOL means center EDPOS vertically.
- _EdScrollToSel( ) API Library Routine
- Makes sure the selection anchor point is on the screen. BOOL means center anchor point vertically.
- _EdSelect( ) API Library Routine
- Selects the range from EDPOS to EDPOS. To move the insertion point, set both EDPOSes the same.
- _EdSendKey( ) API Library Routine
- Simulates key press given by int.
- _EdSetEnv( ) API Library Routine
- Sets various editor settings.
- _EdSetPos( ) API Library Routine
- Moves insertion point, and has side affect of unselecting anything currently selected.
- _EdSkipLines( ) API Library Routine
- Moves insertion point from EDPOS to beginning of line int.
- _EdUndo( ) API Library Routine
- Undoes the most recent changes.
- _EdUndoOn( ) API Library Routine
- Groups the actions performed after _EdUndoOn(В ) is passed until it is passed again as a single action for undo purposes.