[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Error xx           Integer or Real Variable was Expected             pp 321

 Source:  Compiler

 Cause:   An Integer or Real type variable was expected here.

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


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


 Example:
       VAR
          ByteVar : Byte      ;
          Code    : Integer   ;
          IntVar  : Integer   ;
          RealVar : Real      ;
          StrVar  : String [4];

       BEGIN
         Val (StrVar,StrVar ,Code);  { Wrong - not a Real or Integer type }
         Val (StrVar,ByteVar,Code);  { Wrong - not a Real or Integer type }
         Val (StrVar,IntVar ,Code);  { Right - numeric variable type here }
         Val (StrVar,RealVar,Code);  { Right - numeric variable type here }
       END.

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