Autor Beitrag
lord.paddington
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Sa 02.07.05 20:36 
Hi!

Diesen Quellcode habe ich aus dem Forum.
Sieht einfach aus...nur habe ich die Funktion in einem Bereich nicht verstanden...brauche Hilfe

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
//Zeile einlesen und splitten
begin
  List := TStringList.Create;
  s := Memo1.Lines[0];
  List.Delimiter := ';';
  List.CommaText := s;
  for i := 0 to ( List.Count - 1 ) do begin
                                        //Was muss ich hier eintrage, damit ich bspw. den 1. Teilstring darstelen kann?
                                      end;
  List.Free;
end;


Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am Sa 02.07.2005 um 22:36

_________________
pfutsch ist hin und hin ist pfutsch
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Sa 02.07.05 20:42 
Wie wär's mit List[i]? :)
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 02.07.05 20:47 
Suche benutzen... :roll:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Mo 04.07.05 08:17 
Hallo!

Die Suche in den FAQ Sparten hat mir folgendes geliefert:

...wie kann ich einen String zerteilen?
...einen unterteilten String in ein Array schreiben?

Das ist zwar nicht die Antwort auf Deine Frage aber vielleicht hilft es dir ja trotzdem. ;-)

Lg Martin