I have tried it but then i found the value of id
Code:
Procedure TForm1.Person(ID : Integer);
begin
//here the
query excuted with a value of ID which comes from another procedure
//therefore to use the function its a lot more change in whole code
// i think in my situation pass parameter by reference will be best way
end;
it would be kind of you, if you give me a small example concerning my situation in order to pass the parameter by refrence from Procedure TForm1.Person(ID : Integer); to Procedure TForm1.Button1Click(Sender: TObject);