[<<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.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson