[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error 31                 Simple Expression Expected                  pp 322

 Source:  Compiler

 Cause:   Non scalar expression was found.

 Remedy:  Check for a real or structured data type at the failing location.


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


 Example:
       VAR
          IntVar  : Integer;
          RealVar : Real   ;

       BEGIN
          IntVar := Ord (1.0);            { Wrong   - type is Real        }
          IntVar := Ord (1)  ;            { Right - type is Integer       }

          Case RealVar Of                 { Wrong   - type is Real        }
          Case IntVar  Of                 { Right - type is Integer       }
               1 : WriteLn ('Choice 1');  { Selector is Integer Type      }
               End;                       { End of CASE                   }
       END.

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