[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 10                     Period is Missing                       pp 321

 Source:  Compiler

 Cause:   Period is missing from statement.

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


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


 Example:
       TYPE
          Days   = 1..31               ;
          Months = (Jan,Feb,Mar,Apr,
                    May,Jun,Jul,Aug,
                    Sep,Oct,Nov,Dec)   ;
          Years  = 1900..1999          ;

          Date = Record
                 Day   : Days          ; { Day is 1..31 of Days        }
                 Month : Months        ; { Month is 1..12 of Months    }
                 Year  : Years         ; { Year is 1900..1999 of Years }
                 End                   ; { End of record               }

       VAR
          Birth        : Date          ;

       BEGIN
          Birth Month  := Nov          ;  { Wrong   }
          Birth Day    := 4            ;
          Birth Year   := 1950         ;

          Birth.Month  := Nov          ;  { Correct }
          Birth.Day    := 4            ;
          Birth.Year   := 1950         ;
       END.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson