G
Guest
Всем привет!
Обращаюсь за помощью, в принципе, как и многие люди на этом формуе
В общем, я в Delphi объявила запись, вот так:
type
auto = Record
aspect:array[1..26] of string[20];
run:array[1..26] of integer;
size_motor:array[1..26] of integer;
edition:array[1..26] of integer;
power_motor:array[1..26] of integer;
price:array[1..26] of integer;
end;
А потом в проге присвоила значения этим записям, вот так:
begin
auto.aspect[1]:='Renault';
auto.run[1]:=67000;
auto.size_motor[1]:=1700;
auto.edition[1]:=1991;
auto.power_motor[1]:=150;
auto.price[1]:=2591;
auto.aspect[2]:='Daewoo Matiz';
auto.run[2]:=45000;
auto.size_motor[2]:=800;
auto.edition[2]:=2003;
auto.power_motor[2]:=49;
auto.price[2]:=6600;
и т.д.
А при компиляции такая ошибка:
Object or class type required
Просто не могу понять чего он ругается...
Обращаюсь за помощью, в принципе, как и многие люди на этом формуе
В общем, я в Delphi объявила запись, вот так:
type
auto = Record
aspect:array[1..26] of string[20];
run:array[1..26] of integer;
size_motor:array[1..26] of integer;
edition:array[1..26] of integer;
power_motor:array[1..26] of integer;
price:array[1..26] of integer;
end;
А потом в проге присвоила значения этим записям, вот так:
begin
auto.aspect[1]:='Renault';
auto.run[1]:=67000;
auto.size_motor[1]:=1700;
auto.edition[1]:=1991;
auto.power_motor[1]:=150;
auto.price[1]:=2591;
auto.aspect[2]:='Daewoo Matiz';
auto.run[2]:=45000;
auto.size_motor[2]:=800;
auto.edition[2]:=2003;
auto.power_motor[2]:=49;
auto.price[2]:=6600;
и т.д.
А при компиляции такая ошибка:
Object or class type required
Просто не могу понять чего он ругается...