Вниз
Скачать: CL | DM;

abort в KOL   Найти похожие ветки 

 
Ilnur   (2005-06-06 16:24) [0]

Скажите, пожалуйста, как реализована в KOL функция "Abort" для прекращения действия функции, но не для выхода из нее
В моём случае:

SaveResp := Messagebox(applet.Handle,pchar(Format(sSaveChanges, [FFileName])),"do you want to save changes?",3);
case SaveResp of
   idYes: KOLForm1Savemenu(self.MainMenu1,1);
   idNo: {Nothing};
   idCancel: {I don"t know???} ;
 end;
end;

Что нужно вставить в idCancel? (но не exit, т.к. exit выходит из процедуры, а мне нужно вставить это в KOLForm1Close).


 
Thaddy   (2005-06-06 17:58) [1]

That is not a KOL question, but an algorithmic question:
ask your self:
- How many options do I have to provide for (hint: 1 2 3) ?
- What exactly are the numbers I get back?
- What structures does Delphi provide to handle these? (hint: case)
- What is the right place in my program to put such a question? (hint: if you get stuck, it is too late!)

I can give you an example of what you want, but you should first try to solve this well known problem yourself!

(Follow the hints: it is not difficult)



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

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



Память: 0.45 MB
Время: 0.024 c
11-1117688514
azsd
2005-06-02 09:01
2006.01.22
KOL+FPC 2.0 return 39 errors in converted kol.pas


5-1123089950
Juice
2005-08-03 21:25
2006.01.22
Сохранение свойства-обьект


2-1136475809
mozgan
2006-01-05 18:43
2006.01.22
Работа с таймером


1-1134549868
neat
2005-12-14 11:44
2006.01.22
Включение/отключение компонента


3-1132755544
Ega23
2005-11-23 17:19
2006.01.22
GUID-поле в TClientdataSet - невозможно???




   Наверх