22-11-2013, 06:31 PM
Houdini كتب :ولها خاصيتان read - write الاولى تنفد ب procedure بلا برمتر و ثانية ب function بلا برمتر ايضاا
يعني هي تغليف ل function و proceure
مستحيل .. procedure الكتابة تحتاج الى برامتر ..
PHP كود :
type
TForm1 = class(TForm)
private
function GetTest : Integer;
procedure SetTest; // Bad implementation .
procedure SetTest2(Value:Integer);// Good implementation .
{ Private declarations }
public
property Test:integer read GetTest write SetTest; // Error
property Test2:integer read GetTest write SetTest2;// No Error
{ Public declarations }
end;
Open Your Source .. Open Your Mind

