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 51 invalid subrange type pp 322</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 51                   Invalid Subrange Type                     pp 322

 Source:  Compiler

 Cause:   Syntax error or invalid type.
          Valid subrange types are all scalar types except Real.

 Remedy:  Examine the subrange declaration for a missing dot, or
          a range of type Real.


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


 Example:
       TYPE
          Days = Array [1.7]  of String [10];   { Wrong }
          Days = Array [1..7] of String [10];   { Correct }

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