<div dir="ltr">I have used object to make more easy, not need to create or free it,<br><br>MyObject = object<br>private<br> FProp1: integer;<br>public<br> Prop1: integer read FProp1 write FProp1<br> procedure Proc1;<br>
end;<br clear="all"><br>used like<br>var<br> O: MyObject;<br>begin<br> O.Proc1;<br>end;<br><br>1 - The problem, i have random value in the prop1(I am not sure about it), is that mean i must initiliaze it.<br>2 - is there a method i can override it to init my properties without to call it manualy O.init;<br>
<br>Thanks in advance<br>-- <br>Zaher Dirkey<br>
</div>