Autor Beitrag
Progger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinServer 2003
D7 Enterprise
BeitragVerfasst: Do 03.11.05 17:36 
hallo leute:
hab da ein problem mit dem Erstellen von TStrings...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
Procedure ...
  Var Strings: TStrings;
Begin
  Strings := TStrings.Create;
  
  {Hier wird schon der erste Fehler angezeigt}
  Strings.LoadFromFile('C:\test.txt');
End;

_________________
Was nicht kurz ist, ist eben lang und was nicht lang ist, ist eben kurz...
...So ist das Leben
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Do 03.11.05 17:39 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
Procedure ...
  Var Strings: TStringList;
Begin
  Strings := TStringList.Create;
  
  {Hier wird kein Fehler angezeigt}
  Strings.LoadFromFile('C:\test.txt');
End;


Zuletzt bearbeitet von JRegier am Do 03.11.05 17:40, insgesamt 1-mal bearbeitet
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 03.11.05 17:39 
Was wird angezeigt? Also welcher Fehler

_________________
Programmers never die, they just GOSUB without RETURN
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 03.11.05 17:42 
TStrings ist eine Abstrakte Klasse und kann NICHT instantiiert werden --> EAbstractError...

Versuchs mit TStringList ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Progger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinServer 2003
D7 Enterprise
BeitragVerfasst: Do 03.11.05 17:42 
...also während der laufzeit als "EAbsrtactError" -- Abstrakter Fehler

_________________
Was nicht kurz ist, ist eben lang und was nicht lang ist, ist eben kurz...
...So ist das Leben
Progger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinServer 2003
D7 Enterprise
BeitragVerfasst: Do 03.11.05 17:46 
aha...dankeschön..also mit dem was 'JRegier' geschrieben hat oder wie...
jjjjjaaa..es klappt..ich danke für alles..ich bedanke mich besonders bei 'JRegier' mit dem source...nagut...is gut mit dem gesülze..haut rin

_________________
Was nicht kurz ist, ist eben lang und was nicht lang ist, ist eben kurz...
...So ist das Leben