Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>misc_error(name, line, info, model) miscellaneous error</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Misc_error(name, line, info, model)               Miscellaneous error

   Miscellaneous errors are unclassified but non-fatal errors that occur
   when there is an error that any of the other error handlers can't
   deal with.


Info messages: Type mismatch
               RUN error

Model:         The model contains some fragment of Clipper code relating
               to the command that instigated the error.  Note: unlike
               Expr_error(), the model does not contain code that can be
               executed as a macro.

Recovery:      RETURN (.T.) to retry database operation
               RETURN (.F.) and Clipper automatically QUITs (CLOSEing
               ALL)


------------------------- Example -- Errorsys.prg ----------------------------

   FUNCTION misc_error
   PARAM name, line, info, model

   SET DEVICE TO SCREEN
   @ 0, 0
   @ 0, 0 SAY "Proc " + M->name + " line " + LTRIM(STR(M->line)) +;
            ", " + M->info

   NOTE BREAK

   QUIT

   RETURN .F.


------------------------- Example -- Alterror.prg -----------------------------

   FUNCTION misc_error
   PARAM name, line, info, model

   ALTD(2)

   SET DEVICE TO SCREEN
   @ 0, 0
   @ 0, 0 SAY "Proc " + M->name + " line " + LTRIM(STR(M->line)) + ", "
   +;
            M->info + ": " + M->model

   BREAK

   RETURN .F.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson