Главная страница
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.049 c
14-1103528893
Чеширский_Кот
2004-12-20 10:48
2005.01.23
Антибумер


9-1096986377
ninja
2004-10-05 18:26
2005.01.23
смотрите, изометрия :)


4-1102331451
Makuha
2004-12-06 14:10
2005.01.23
Работа с файлами с помощью ф-ций _lopen и _lread.


14-1105047807
Doom
2005-01-07 00:43
2005.01.23
VB


3-1103633684
den_777
2004-12-21 15:54
2005.01.23
Частое изменение метаданных в INTERBASE