Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
1-1118263982
alex-drob
2005-06-09 00:53
2005.06.29
Определить что мышь над формой


4-1113469919
Pa5ha
2005-04-14 13:11
2005.06.29
Menu & OpenDialog runTime


4-1112515772
ssmaxx
2005-04-03 12:09
2005.06.29
Рисование на панели


3-1116225853
Fynjy1984
2005-05-16 10:44
2005.06.29
Нередактируемый запрос


14-1117439308
Kolan
2005-05-30 11:48
2005.06.29
что такое xmas




   Наверх