Hello..
My file copenttd.big, has size=copenttd.big 13,515,411=12Mo of ascii#13#10
My routine pix15_big_flistsvc, read from copenttd.big and send line by line, or each line to "SendMessage(ListHanbox, LB_ADDSTRING,"
C:Q1 =How to avoid 5*reiterator of callpas on samefile "pix15_big_flistsvc"?
C:Q2= You search ??? with CTRL+F? Reloaded too much?
Eg. of Callpas
[code]
Program main;
Var bigGrinder:string='';
bigGrinder_oleacrc:double=0.0;
Begin
dwg:=pix15_big_flistsvc(100,lisrt) +
pix15_big_flistsvc(102,lisrt) +
pix15_big_flistsvc(132,lisrt) +
pix15_big_flistsvc(142,lisrt) +
pix15_big_flistsvc(152,lisrt) +
End;
Function pix15_big_flistsvc(exe:word;ListHanbox:tHandle):integer;
Var cnt,nth,dxf,procenow,len1line,siz1step,sizenext,size3all,sizesuma:integer;
bill:double;
Label vbCanNext;
Begin nth:=00;
dxf:=000;
bill:=0.0;
size3all:=php_filesize(ktoolfini_openttd32lst);
with TStringList.Create do
Try
Try
java_index:=000;
if (fileexists(ktoolfini_openttd32lst)) then
LoadFromFile(ktoolfini_openttd32lst) else
SetText(orto_Painica2034cuminte71);
cnt:=count-01;
for nth:=00 to count-01 do
Begin len1line:=length(Strings[nth]);
sizesuma:=sizesuma+len1line+02;
if (len1line<3) then goto vbCanNext;
strpcopy(@ddraw2.car[8],Strings[nth]);
dxf:=SendMessage(ListHanbox, LB_ADDSTRING, java_index,integer(@ddraw2.car[8]));
inc(java_index);
if (sizesuma<sizenext) then goto vbCanNext;
while (sizesuma>=sizenext) do
Begin adui_inc_digi23(@ddraw2.car[3],'z');
sizenext:=sizenext+siz1step;
End;
ddraw2.car[8+len1line]:='"';
ddraw2.car[9+len1line]:=#000;
SendMessage(StatWnd, SB_SETTEXT, 0,integer(@ddraw2.car[0]));
vbCanNext:
End;//off("lb_addstringmy2008(100);")
finally
end;
finally
free;
End;
//off("la fisiere de 12Mb, incarcarea cu "SrcList.Items.LoadFromFile(ktoolfini_openttd32lst);" dureaza foarte mult")
if (irunin.ini>=100) and ((irunin.ini-100)<cnt) then
SendMessage(listHanBox,LB_SETCURSEL,irunin.ini-100,000);
End;
[/code]

My solution is calculate with pdouble()
Begin
bigGrinder_oleacrc:=pDouble(@bigGrinder)^;??? bulgaria:='I am must100%sure not more Loading from, otherwise I keep the values in memory';
End;