I have a table updating program (program 2) which is used to print a tickler chart for our Social Workers. This program will be called from a menu (program 1). The program returns .T./.F. to signify success or failure of the update (to program 1). Within the program (an independant .prg file) I have an error handler (program 3) that gets call using ON ERROR DO ErrorHandler. Since this error handler is setup to handle Unanticipated errors such as, USE XXX when XXX is in use allready, I wanted it to return to the calling program (program 1) .F. for no success. I mistakenly used the syntax RETURN .F. TO &lcProgramName where program name equaled the name of program 1.
Closer examination of the help file revield I could say RETURN .F. or RETURN TO &lcProgramName but not both. I can setup a global variable in Program 1, set it in the error handler and check it on return but that seems much messier than the way falsely attempted to do it.
My question is - Is there a better way. Since VFP is pretty well programmed I have found that when I do something like this it is usually because there is a better way that I just wasn't aware of.
Thanks in advance
Terry Hobart
It is impossible to make programs idiot proof. Idiots are too cleaver.
MCP( Tcp/Ip )