Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> error 31 simple expression expected pp 322</b>
[<<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.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson