Показать сообщение отдельно
  #2  
Старый 03.09.2011, 11:04
Аватар для Ildar-tsr
Ildar-tsr Ildar-tsr вне форума
Местный
 
Регистрация: 09.08.2011
Адрес: г.Сургут, ХМАО
Сообщения: 453
Репутация: 7402
По умолчанию

Код:
procedure TForm1.Button1Click(Sender: TObject);

var ch,mes,god:word;
begin

DecodeDate(DataTimePicker1.Date, god, mes, ch);

case mes of
1:if ch>=20 then Label3.caption:=' Vodoley' else Label3.caption:=' Kozerog';
2:if ch>=20 then Label3.caption:=' Ryba' else Label3.caption:=' Vodoley';
3:if ch>=20 then Label3.caption:=' Owen' else Label3.caption:=' Ryba';
4:if ch>=20 then Label3.caption:=' Telec' else Label3.caption:=' Owen';
5:if ch>=20 then Label3.caption:=' Bliznechy' else Label3.caption:=' Telec';
6:if ch>=20 then Label3.caption:=' Rak' else Label3.caption:=' Bliznechy';
7:if ch>=20 then Label3.caption:=' Lev' else Label3.caption:=' Rak';
8:if ch>=20 then Label3.caption:=' Deva' else Label3.caption:=' Lev';
9:if ch>=20 then Label3.caption:=' Vesy' else Label3.caption:=' Deva';
10:if ch>=20 then Label3.caption:=' Skorpion' else Label3.caption:=' Vesy';
11:if ch>=20 then Label3.caption:=' Strelec' else Label3.caption:=' Skorpion';
12:if ch>=20 then Label3.caption:=' Kozerog' else Label3.caption:=' Strelec';
end
__________________
Google в помощь
Ответить с цитированием