Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2005.12.04;
Скачать: [xml.tar.bz2];

Вниз

Ошибка- The compiler could not find the given identifier???   Найти похожие ветки 

 
Ins!7t   (2005-11-03 20:34) [0]

Начинаю писать простенькую программу и при компиляции появляются ошибки:
The compiler could not find the given identifier - most likely it has been misspelled either at the point of declaration or the point of use. It might be from another unit that has not mentioned a uses clause.

program Produce; var   Counter: Integer; begin   Count := 0;   Inc(Count);   Writeln(Count); end.

In the example, the variable has been declared as "Counter", but used as "Count". The solution is to either change the declaration or the places where the variable is used.

program Solve; var   Count: Integer; begin   Count := 0;   Inc(Count);   Writeln(Count); end.

In the example we have chosen to change the declaration - that was less work.  
________________________________________________________

This error message occurs when the compiler cannot find an input file. This can be a source file, a compiled unit file (.dcu file), an include, an object file or a resource file.

Check the spelling of the name and the relevant search path.

program Produce; uses SysUtilss;       (*<-- Error message here*) begin end.
program Solve; uses SysUtils;      (*Fixed typo*) begin end.

For a .dcu file, failure to set the unit/library path for the compiler is a likely cause of this message. The only solution is to make sure the named unit can be found along the library path

Как их исправить? Вот код самой программы:
procedure TForm1.Button1Click(Sender: TObject);

begin
Count := Count + 1 ;
But1. Caption := IntToStr(Count);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
Form1.Close;
end;

end.


 
NightLord ©   (2005-11-03 21:43) [1]

Как их исправить? Вот код самой программы:

А что было выше?

Так где возникает ошибка? В приведенном примере не очень то разберешся =(


 
злобная танька   (2005-11-03 22:17) [2]

переменная Count не объявлена.
или нет объекта с именем But1.
одно из двух!



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

Форум: "Основная";
Текущий архив: 2005.12.04;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.041 c
2-1131568136
serko
2005-11-09 23:28
2005.12.04
Расшаривание папки!


2-1131945110
Laymer
2005-11-14 08:11
2005.12.04
Запуск DOS приложений


14-1131572419
LordOfRock
2005-11-10 00:40
2005.12.04
Winamp Modern Skin - painting...


3-1129722298
Amid
2005-10-19 15:44
2005.12.04
как изменить данные в TClientDataSet ?


2-1132141221
Юлия
2005-11-16 14:40
2005.12.04
У меня не компелится проект





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский