Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> error 71 invalid goto target pp 323</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 71                    Invalid GOTO Target                      pp 323

 Source:  Compiler

 Cause:   A GOTO can not reference a target inside a FOR/TO loop.

 Remedy:  Examine the statement ahead of the error cursor for the above
          condition.


 ----------------------------------------------------------------------------


 Example:
       LABEL
           CodeEnd;                { Declare a target inside Main block }

       VAR
           L1 : Byte;              { FOR loop control variable          }

       BEGIN
          Goto CodeEnd;            { Wrong - can't jump into a FOR loop }
          For L1 := 1 to 10 do
             Begin
             CodeEnd:              { Goto target is inside FOR loop }
             End;
       END.

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