حساب العمر بالسنة بدلفي7
#2
PHP كود :
procedure TForm1.FormCreate(Sender: TObject);
var 
i:Integer;
begin
for i:=1900 to 2015 do
combobox1.Items.Add(IntToStr(i));
combobox1.ItemIndex:=0;
Edit1.Text:='0';
end;

procedure TForm1.Button1Click(Sender: TObject);
var 
Year, Month, Day: Word  ;
begin
  DecodeDate
(Date,Year, Month, Day) ;
Edit1.Text:=IntToStr(Year-StrToInt(ComboBox1.Text))
end; 
الرد


الردود في هذا الموضوع
حساب العمر بالسنة بدلفي7 - بواسطة onexite - 17-01-2015, 09:04 PM
حساب العمر بالسنة بدلفي7 - بواسطة onexite - 17-01-2015, 10:11 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم