Subj : Re: return [value] To : Jasen.Betts@xspamp42.f531.n640.z3.f From : Steve Date : Mon Dec 17 2001 12:29 pm From: "E. S. (Steve) Fabian" Jasen.Betts@xspamp42.f531.n640.z3.fidonet.org wrote: > > Hi All. > > I can't make "return" of an errorlevel value work. (4dos versions 6 and 7) > > eg: > > PROGRAM.BTM > ~~~~~~~~~~~ > > gosub something > echo something returned %? > quit > :something > return 3 > > output: > ~~~~~~~ > > something returned 0 > Note: %? is return code from last EXTERNAL program. If you try %_?, it works. But testing ERRORLEVEL does not work, either. I am reporting the problem to JPSOFT. -- E. S. "Steve" Fabian ESFabian@BellAtlantic.net POB 1540, Cherry Hill, NJ 08034 Telephone: 856-354-1752 EMPIRE Consultants, Inc. Director, Software Development ------------------------------------------------------------------- --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .