fpc/docs/refex/ex74.pp
1998-03-25 11:26:49 +00:00

13 lines
249 B
ObjectPascal

Program Example74;
{ Program to demonstrate the Val function. }
Var I, Code : Integer;
begin
Val (ParamStr (1),I,Code);
If Code<>0 then
Writeln ('Error at position ',code,' : ',Paramstr(1)[Code])
else
Writeln ('Value : ',I);
end.