Вниз
Скачать: 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.44 MB
Время: 0.089 c
5-1121079938
Dimk
2005-07-11 15:05
2006.01.22
Как использовать созданные в Delphi компоненты в C++ Builder


9-1123486620
ПЛОВ
2005-08-08 11:37
2006.01.22
Вопрос по OpenGL


10-1111131843
AloneAli
2005-03-18 10:44
2006.01.22
Как передать двойной щелчек мыши в Word e


14-1135688727
Ale_x_ey
2005-12-27 16:05
2006.01.22
Виртуальная машина


1-1134713613
Дмитрий_177
2005-12-16 09:13
2006.01.22
Проблема с созданием елементов в Notebook




   Наверх