I have used object to make more easy, not need to create or free it, MyObject = object private FProp1: integer; public Prop1: integer read FProp1 write FProp1 procedure Proc1; end;
used like var O: MyObject; begin O.Proc1; end; 1 - The problem, i have random value in the prop1(I am not sure about it), is that mean i must initiliaze it. 2 - is there a method i can override it to init my properties without to call it manualy O.init; Thanks in advance -- Zaher Dirkey
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal