Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> error xx integer or real variable was expected pp 321</b> http://www.X-Hacker.org [<<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.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson