Почему-то на объявление класса типа
Код:
unit UnitMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, ExtCtrls;
type
TWLD = class//класс
type //8 строка
TH = record//тип запись в классе
Name : string[10];
end;//конец записи
var
H : TH;
end;//конец класса 24 строка
var
WLD : TWLD;
//*****************************************************************************
implementation //28 строка
end.
Delphi 7 ворчит не может, а Delphi 2010 прожевал и не поперхнулся...
Вот ошибки Delphi 7
Цитата:
[Error] UnitMain.pas(8): 'END' expected but 'TYPE' found
[Error] UnitMain.pas(24): 'IMPLEMENTATION' expected but ';' found
[Error] UnitMain.pas(28): '.' expected but 'IMPLEMENTATION' found
[Fatal Error] FormMain.pas(34): Could not compile used unit 'UnitMain.pas'
|
Может кто знает ответ, как мне в Delphi 7 реализовать...