Autor Beitrag
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Do 13.05.04 12:47 
hallo leute
ich seh immoment echt keinen fehler in dem quellcode kann da mal einer drüber schaun?

bei den delete proceduren schneidet er den teilstring nicht ab

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
assignfile(Mitglieder,name);
  reset(mitglieder);
  While not eof(mitglieder) do
   begin
      readln(mitglieder,s);
      vorname:=copy(s,0,pos(',',s)-1);
      delete(s,0,pos(',',s));
      name1 :=copy(s,0,pos('/',s)-1);
      delete(s,0,pos('/',s));
      geschlecht:= copy(s,0,pos('/',s)-1);
      delete(s,0,pos('/',s));

   if geschlecht='w' then
     Begin
       memo2.Lines.Add(name1+','+vorname+'/w');
     end
   else
       memo1.Lines.add(name1+','+vorname+'/m');

end;
  closefile(mitglieder);
end;


das kann nur kleiner fehler sein aber ich seh ihn echt nicht

die zeilen in der datei sehen so aus

vorname,name/w/1909

Moderiert von user profile iconMotzi: Code- durch Delphi-Tags ersetzt.

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Do 13.05.04 12:53 
Sorry foxy, in deinem Code war ein Fehler, den habe ich übernommen. :twisted:

ausblenden Delphi-Quelltext
1:
delete (0,...					


da muß eine 1 rein. in s[0] steht die Länge und wenn das auch gelöscht wird, tja dann wird Delphi wohl nicht mitmachen. 8)

_________________
Gruß
Hansa
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Do 13.05.04 13:07 
lol hansa :)

kk dank dir

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)