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 30 simple type was expected pp 322</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 30                  Simple Type was Expected                   pp 322

 Source:  Compiler

 Cause:   Simple types are all Scalar types except Real.

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


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


 Example:
       TYPE
          SetVar = Set Of [0..9] of Byte;   { Wrong                         }
          SetVar = Set Of  0..9 ;           { Correct                       }

       PROCEDURE VarChange (VAR Addr1 : Integer);
          Var
            Temp    : Integer;              { Declare local loop control    }

          Begin
          For Addr1 := 1 to 10 Do           { Wrong - Can't use in loops    }
              Begin
              End;
          For Temp  := 1 to 10 Do           { Correct - local Loop counter  }
              Begin
              End;
          End;

       BEGIN
       END.

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