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>undef_error(name, line, info, model, _1) undefined error</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Undef_error(name, line, info, model, _1)          Undefined error

   Undefined errors occur when you refer to a variable (memory or field)
   before being defined.  Typically this includes an identifier
   reference where TYPE() would return a "U," "UE," or "UI."


Info messages: Undefined identifier
               Not an array
               Missing EXTERNAL

Model:         Contains a code fragment indicating the operation where
               the error occurred.  "_1" contains the undefined
               identifier.

Recovery:      RETURN (.T.) to retry.
               RETURNing (.F.), automatically executes a QUIT (CLOSEs
               ALL).


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

   FUNCTION undef_error
   PARAM name, line, info, model, _1

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

   QUIT

   RETURN .T.


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

   FUNCTION undef_error
   PARAM name, line, info, model, _1

   ALTD(2)

   SET DEVICE TO SCREEN
   @ 0, 0
   @ 0, 0 SAY "Proc " + M->name + " line " + LTRIM(STR(M->line)) + ", "  +;
            M->info + ": " + " " + M->_1
   @ 1, 0 SAY "Press Esc to abort, any other key to retry..."

   IF (INKEY(0) == 27)
      @ 0,0
      @ 1,0
      BREAK
   END

   @ 0,0
   @ 1,0

   RETURN .T.

.

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