Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.06.29;
Скачать: CL | DM;

Вниз

В чем ошибка?   Найти похожие ветки 

 
Koala ©   (2005-06-09 12:42) [0]

Делаю UDFку, вот код:

procedure ReturnDate(var bool : Integer; DateEnt, DateEnd: TDateTime) :String;
far cdecl export;
 function dataString(dat : TDateTime) : string;
 var Year, Month, Day: Word;
 begin
   DecodeDate(dat, Year, Month, Day);
   case Day of
     0..9 : Result := Char(34) + "0" +IntToStr(Day) + Char(34) + " " +
                      MoonName(Month) + " " + IntToStr(Year) + "г.";
   else     Result := Char(34) + IntToStr(Day) + Char(34) + " " +
                      MoonName(Month) + " " + IntToStr(Year) + "г.";
   end;
 end;
begin
 case bool of
   0 : Result := dataString(DateEnt);
   1 : Result := "c: " + dataString(DateEnt) + " по: " + dataString(DateEnd);
 end;
end;


Выдает ошибку: [Error] utils.dpr(110): Procedure cannot have a result type


 
Ega23 ©   (2005-06-09 12:44) [1]

Не procedure а function

А вообще - в Орешник!!!!



Страницы: 1 вся ветка

Текущий архив: 2005.06.29;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.046 c
1-1118325601
lehich
2005-06-09 18:00
2005.06.29
фоновой рисунок на Form


14-1117536010
MishaVagin
2005-05-31 14:40
2005.06.29
Помогите найти подходящую компоненту


9-1111516682
Sphinx
2005-03-22 21:38
2005.06.29
Плагин к 3DS Max 7 и .X файлы


14-1117524817
syte_ser78
2005-05-31 11:33
2005.06.29
Посоветуйте программу


14-1117898334
Juice
2005-06-04 19:18
2005.06.29
NTFS ный диск под 98 ой