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 18 to or downto is missing pp 321</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 18                  To or Downto is Missing                    pp 321

 Source:  Compiler

 Cause:   To or Downto is missing from For loop.

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


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


 Example:
       VAR
          L1  :  Byte;

       BEGIN
          For L1 := 1 { To } 10 Do         { To is missing     }
            Begin
            End;

          For L1 := 10 { Downto }  1 Do    { Downto is missing }
            Begin
            End;
       END.

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