Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function extractInt(str:string):integer;
- var tmp:string;
- begin
- for i:=1 to Length(str) do
- if str[i] in ['0'..'9'] then tmp:=tmp + String(str[i]);
- Result:=StrToInt(tmp);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement