string to integer delphi
var
A, B, C, D, E, F : Integer;
begin
A := 32;
B := strtoint('100'); // '100' string converted to 100 integer
C := strtoint(' -12'); // Leading blanks are ignored
D := strtoint('$1E'); // Hexadecimal values start with a '$'
E := strtoint('-0x1E'); // ... or with a '0x'
F := A + B + C + D + E; // Lets add up all these integers
ShowMessage('A : '+IntToStr(A));
ShowMessage('B : '+IntToStr(B));
ShowMessage('C : '+IntToStr(C));
ShowMessage('D : '+IntToStr(D));
ShowMessage('E : '+IntToStr(E));
ShowMessage('F : '+IntToStr(F));
end;