Code: Select all
FUNCTION Start( ) AS VOID
FoxProMessage = "Hello VFP!"
? FoxProMessage
use f:xsharpdeallist
? dealname
skip
? dealname
wait
Close All
wait
RETURN
Regards,
Jeff
Post by Jeff Stone »
Code: Select all
FUNCTION Start( ) AS VOID
FoxProMessage = "Hello VFP!"
? FoxProMessage
use f:xsharpdeallist
? dealname
skip
? dealname
wait
Close All
wait
RETURN
Post by Jeff Stone »
Post by Jeff Stone »
The CLOSE ALL statement was actually on line 10 rather than line 9. I don't know if the error reporting is always 1 line lower than it should be or if it is just in this instance.Hello VFP!
SB102
HYB21
Description : Invalid alias specification
Subsystem : DBCMD
GenCode : EG_ARG Argument error
SubCode : 1010 Invalid alias specification
FuncSym : ERROR:VODBERROR
Severity : ES_ERROR
Can Default : False
Can Retry : False
Can Substitute : False
Argument : All
Arguments : {All}
Stack Trace :
at XSharp.RT.Functions.__pushWorkarea(__Usual alias)
at XSharpFoxPro1.Exe.Functions.Start() in f:xsharptestappPrgStart.prg:line 9
Press any key to continue...
Code: Select all
ON ERROR DO errHandler WITH ;
ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )
USE nodatabase
ON ERROR && Restores system error handler.
PROCEDURE errHandler
PARAMETER merror, mess, mess1, mprog, mlineno
CLEAR
? 'Error number: ' + LTRIM(STR(merror))
? 'Error message: ' + mess
? 'Line of code with error: ' + mess1
? 'Line number of error: ' + LTRIM(STR(mlineno))
? 'Program with error: ' + mprog
ENDPROC