[Lazarus] OOP basics - 2
Kjow
antispammoni at gmail.com
Wed Apr 14 16:38:42 CEST 2010
2010/4/14 Michael Van Canneyt <michael at freepascal.org>:
> Put unit2 in the implementation uses list of unit1. Then it should work.
>
> Michael.
Ohh, thank you!
It works :)
I have an other question (just to know if it is possible and how):
if I want to implement the function:
function TTest.test(x,y: integer): integer;
begin
Result:=x+y;
end;
on Unit2, so I want to leave all things at the same place, but copy
this function on Unit2: is it possible to declare methods and
implement its on different unit?
Thanks,
Kjow
More information about the Lazarus
mailing list