ex74.pp 249 B

123456789101112
  1. Program Example74;
  2. { Program to demonstrate the Val function. }
  3. Var I, Code : Integer;
  4. begin
  5. Val (ParamStr (1),I,Code);
  6. If Code<>0 then
  7. Writeln ('Error at position ',code,' : ',Paramstr(1)[Code])
  8. else
  9. Writeln ('Value : ',I);
  10. end.