CodePudding user response:
[size=16 px] Delphi a TStringHelper class, and can convert character typeVar
S: a string;
I: integer;
The begin
S:='1';
I:=s.T oInteger;//I=1
If not TryStrToInt (s, I) then
ShowMessage (' conversion error)
The else
ShowMessage (' transformation success: + I.T oString);
end;
[/size]
CodePudding user response:
VarI: integer;
The begin
I:=DBLookupComboboxEh1. KeyValue;
end;
CodePudding user response:
intToStr