Thanks for suggestion
but how can i initialize the ID:Integer in event handler, becasue in event handler i cannot add any parameter, for example
Code:
procedure TForm1.Button1click(Sender: Tobject);// i cannot set anyother parameter,then delphi compiler automatic delete the adding parameter
begin
//here i need the value of ID,which is for example 20, if i declare var ID: Integer here then it give me the value 0
end;
end.