Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.10.21;
Скачать: CL | DM;

Вниз

Проблема   Найти похожие ветки 

 
Bast   (2007-09-23 21:09) [0]

Здравствуйте! Незнаю почему но данный код отказывается работать пишет типа: index bound out... размер файла 23мб.
procedure TForm1.Button1Click(Sender: TObject);
var
gmshop: Tstrings;
a:integer;
z,x,c:integer;
v,b,n:integer;
begin
gmshop:=Tstringlist.Create;
gmshop.LoadFromFile(form1.Edit1.Text);
for a:=0 to gmshop.Count-1 do
begin
z:=pos("armor", gmshop[x]);
x:=pos("slot_bit_type={gloves}", gmshop[x]);
c:=pos("crystal_type=none", gmshop[x]);
If (not z=0) and (not x=0) and (not c=0) then
begin
v:=pos("[", gmshop[x]);
b:=pos("]", gmshop[x]);
form1.Memo1.Lines.Add(copy(gmshop[x], v+1, b-v+1));
end;
end;
gmshop.Free;
end;

end.


 
Anatoly Podgoretsky ©   (2007-09-23 21:14) [1]

> Bast  (23.09.2007 21:09:00)  [0]

А иксу кто будет присваивать значение перед использованием, Пушкин?


 
Yogan   (2007-09-23 21:15) [2]

list out of bounds (999145...)


 
Bast   (2007-09-23 21:17) [3]

Спасибо


 
Dmitro ©   (2007-09-26 01:28) [4]

Советую строчку:
If (not z=0) and (not x=0) and (not c=0) then
заменить на:
if z + x + c > 2 then



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

Текущий архив: 2007.10.21;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.019 c
3-1181655989
Лёля
2007-06-12 17:46
2007.10.21
Midas Insufficient memory for this operation


15-1190384033
wl
2007-09-21 18:13
2007.10.21
программа чтобы отрезать от mp3 рингтон


15-1190563918
Каисса
2007-09-23 20:11
2007.10.21
Сложение в каноническом Си...


2-1191153487
denissoft
2007-09-30 15:58
2007.10.21
что такое {$I Rz30Ctls_Dsgn_Contains.inc} - ???


2-1190645060
Зачем-надо
2007-09-24 18:44
2007.10.21
Не получается . Реакция на событие OnMouseMove.