Foxtools – Editor _EDLASTERR

Version: 01.00.10 - last Update: Friday, October 09, 2009, 02:35:00

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


Foxtools Editor Support Functions

_EDLASTERR

_EdLastErr() Returns the error number of the last error that occurred in the editor session passed in <nWHAND> parameter.

VFP Syntax

nError = _EdIndent(nWHAND)

Parameters

[in] nWHAND

Fox-window handle of the editor session in question. If nWHANDL is no valid editor-session handle, an error “API call caused an exception” (Error 2028) is raised.

Returns

Numeric – Any value greater <0> flags an error.

Remarks

Only severe errors are reported here. Errors like “Out of Handles” and “Low Memory”. Thus, you can fall back to use VFP’s error trapping mechanisms.

VFP Example(s)

Opening an editor session, bailing out on severe error:

CLEAR
*\\ Open editor session
*\\   use file with at least 2 lines of text
nWHAND =_EDOPENFIL("TEST.TXT", 1)
IF _EdLastErr() > 0
   *\\ big surprise!"
   RETURN
ENDIF

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