Главная страница
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.059 c
6-1099035592
Андрей 2004
2004-10-29 11:39
2005.01.23
SNMP-Протокол


1-1105539217
NeDum
2005-01-12 17:13
2005.01.23
ProgressBar


1-1105224892
andruxa
2005-01-09 01:54
2005.01.23
Помогите разобраться в Hints.


1-1104867226
LIMBO
2005-01-04 22:33
2005.01.23
Узнать размер файла


1-1105218966
Луарвик
2005-01-09 00:16
2005.01.23
Как склеить части файла?