Autor Beitrag
Knulli
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 2

Win2k, Win7, Win10
D5, D2005, D2006, D2007, D10.4.2
BeitragVerfasst: Di 03.06.14 13:18 
Hi Leute,
ich stell mich irgendwie zu blöd an...
Ich will den SuchPfad unter Windows in eine StringList einlesen.

ausblenden Delphi-Quelltext
1:
2:
3:
  lstPath := TStringList.Create();
  lstPath.Delimiter := PathSep;
  lstPath.DelimitedText := GetEnvironmentVariable('Path');


Beim Auslesen der Liste werden aber Einträge mit Leerzeichen (z.B. C:\Program Files (x86)\CodeGear\RAD Studio\5.0\bin;) zerholzt.

Wie macht man es richtig?

Knulli
WasWeißDennIch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 653
Erhaltene Danke: 160



BeitragVerfasst: Di 03.06.14 13:25 
Wird es besser, wenn Du StrictDelimiter auf true setzt?
Knulli Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116
Erhaltene Danke: 2

Win2k, Win7, Win10
D5, D2005, D2006, D2007, D10.4.2
BeitragVerfasst: Di 03.06.14 13:43 
:-) Ja, viel besser...!!

Danke.