Article ID: 143284
Article Last Modified on 5/7/2003
* Begin READTEST.PRG
*
SET EXCLUSIVE OFF
ON ERROR DO errhand WITH ;
ERROR(), MESSAGE(), MESSAGE(1), PROGRAM(), LINENO()
* The following DO FORM allows the form to be cleared if the program
* ends since the variable oReadTest loses scope
DO FORM ReadTest NAME oReadTest LINKED
=Read_Events() && Call procedure to invoke READ EVENTS
ON ERROR
PROCEDURE ErrHand
PARAMETER nErrorNum, cErr_Msg, cErr_Msg1, cErr_Prog, nErr_Line
* Display error number
WAIT WINDOW "Error # "+ALLTRIM(STR(nErrorNum))+ ;
" In "+ALLTRIM(cErr_Prog) TIMEOUT 1
IF UPPER(cErr_Prog)='READ_EVENTS' && Check for program/procedure
* RETRY && Remove * to make error not clear READ EVENTS
ENDIF
ENDPROC
PROCEDURE Read_Events
READ EVENTS
ENDPROC
* End READTEST.PRG
=TABLEREVERT(.T.) && Do not save changes CLEAR EVENTS
THISFORM.Release
Additional query words: VFoxWin
Keywords: KB143284