البرمجة الغرضية التوجه في دلفي
البرمجة الغرضية التوجه في دلفي
البرمجة الغرضية التوجه في دلفي
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>البرمجة</strong> <strong>الغرضية</strong> <strong>التوجه</strong> <strong>في</strong> دل<strong>في</strong><br />
عروة عيسى<br />
procedure SetDay(const Value: Integer);<br />
procedure SetMonth(const Value: Integer);<br />
procedure SetYear(const Value: Integer);<br />
function GetDay: Integer;<br />
function GetMonth: Integer;<br />
function GetYear: Integer;<br />
public<br />
procedure SetValue (y, m, d: Integer); overload;<br />
procedure SetValue (NewDate: TDateTime); overload;<br />
function LeapYear: Boolean;<br />
function GetText: string;<br />
procedure Increase;<br />
property Year: Integer read GetYear write SetYear;<br />
property Month: Integer read GetMonth write SetMonth;<br />
property Day: Integer read GetDay write SetDay;<br />
end;<br />
implementation<br />
uses<br />
DateUtils;<br />
procedure TDate.SetValue (y, m, d: Integer);<br />
begin<br />
fDate := EncodeDate (y, m, d);<br />
end;<br />
procedure TDate.SetValue(NewDate: TDateTime);<br />
begin<br />
fDate := NewDate;<br />
end;<br />
function TDate.GetText: string;<br />
begin<br />
Result := DateToStr (fDate);<br />
end;<br />
١٩