[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Error 21 File Type was Expected pp 321
Source: Compiler
Cause: File variable is not of type File.
Remedy: Examine the statement ahead of the error cursor for the above
condition. Check the declaration type of the variable.
----------------------------------------------------------------------------
Example:
VAR
ByteVar : Byte; { ByteVar is declared as type Byte }
FileVar : File; { FileVar is declared as type File }
BEGIN
Assign (ByteVar,'Test.Dat'); { Wrong - ByteVar is not a File type }
Assign (FileVar,'Test.Dat'); { Right - FileVar is a File type } }
END.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson