Hi,
I've got a local variable A contained within a procedure.
I've got a function A which I want the value of to be assigned to the local variable A:
Obviously the compiler does not like this, but it is pretty essential for understanding of the code that the local variable and the function have the same name. How do I go about doing this? Many thanks.
I've got a local variable A contained within a procedure.
I've got a function A which I want the value of to be assigned to the local variable A:
Code:
function A (b:Integer) : Integer;
begin
blah
end;
Code:
procedure ThisProcedure;
var A,b : Integer;
begin
blah
A:=A(b);
end;
Obviously the compiler does not like this, but it is pretty essential for understanding of the code that the local variable and the function have the same name. How do I go about doing this? Many thanks.