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

Вниз

mrYes: Неизвестный идентификатор   Найти похожие ветки 

 
olookin ©   (2005-01-09 14:06) [0]

В каких случаях такое сообщения компилятора может возникать? Модуль Forms был подключен как в секции interface, так и в секции implementation, как в самом начале, так и в самом конце списка подключенных модулей. Не изменяет положения и использование idYes, впрочем как и любой другой константы из списка TModalResult. Конечно, помогает замена константы на явное число, но все же непонятно. Является ли специфичным использование TModalResult в модуле, описывающим методы приложения-сервера?


 
Kerk ©   (2005-01-09 14:09) [1]

цитата из Controls.pas !!!
{ TModalResult values }

const
 mrNone     = 0;
 mrOk       = idOk;
 mrCancel   = idCancel;
 mrAbort    = idAbort;
 mrRetry    = idRetry;
 mrIgnore   = idIgnore;
 mrYes      = idYes;
 mrNo       = idNo;
 mrAll      = mrNo + 1;
 mrNoToAll  = mrAll + 1;
 mrYesToAll = mrNoToAll + 1;

type
 TModalResult = Low(Integer)..High(Integer);


 
olookin ©   (2005-01-09 14:19) [2]

Благодарствую, помогло...

Однако, цитата из хелпа для Дельфи 5:

TModalResult represents the return value from a modal dialog.

Unit Forms

type TModalResult = Low(Integer)..High(Integer);

и т.д...

Эх, нельзя верить встроенной помощи? (А про то, чтобы в исходниках посмотреть, мне бы следовало догадаться...)


 
Kerk ©   (2005-01-09 14:21) [3]

цитата из хелпа Д7
TModalResult represents the return value from a modal dialog.

Unit

Controls

Delphi syntax:

type TModalResult = Low(Integer)..High(Integer);

C++ syntax:

typedef int TModalResult;

Description

TModalResult represents the value returned by a modal dialog. An application can use any integer value as a modal result value. Although TModalResult can take any integer value, the following constants are defined for commonly used TModalResult values:

Constant Value Meaning

mrNone 0 None. Used as a default value before the user exits.
mrOk idOK The user exited with OK button.
mrCancel idCancel The user exited with the CANCEL button.
mrAbort idAbort The user exited with the ABORT button.
mrRetry idRetry The user exited with the RETRY button.
mrIgnore idIgnore The user exited with the IGNORE button.
mrYes idYes The user exited with the YES button.
mrNo idNo The user exited with the NO button.
mrAll mrNo + 1 The user exited with the ALL button.

mrNoToAll mrAll + 1 The user exited with the NO TO ALL button.
mrYesToAll mrNoToAll + 1 The user exited with the YES TO ALL button.



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

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

Наверх




Память: 0.47 MB
Время: 0.052 c
1-1105337702
LKan
2005-01-10 09:15
2005.01.23
html


14-1104709536
марсианин
2005-01-03 02:45
2005.01.23
Какую ось выбрать?


1-1105314179
Фёдор Мегатронов
2005-01-10 02:42
2005.01.23
Алгоритм деления файла на фрагменты.


6-1099338319
JR
2004-11-01 22:45
2005.01.23
RAS -> BytesReceived


3-1103656778
Guitar
2004-12-21 22:19
2005.01.23
Какое событие происходит и как его обработать?