Autor Beitrag
Das S
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Mo 15.12.03 09:07 
Hi,

ich habe folgendes Problem: Ich schreibe gerade ein FTP-Client mit dem Indy-TldFTP: Nun möchte ich den Transfertyp von ASCII auf Binary zur Laufzeit ändern. Folgender Code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.rans1Click(Sender: TObject);
begin
ftp.TransferType:=ftascii;
end;


Delphi sagt aber immer ftascii ist undefiniert.

Ich finde dieses Problem schon wieder so simpel, daß es mir fast peinlich ist. Wäre trotzdem nett, wenn mir einer antworten könnte. :roll:

Schöne Grüße

Steffen

Moderiert von user profile iconUGrohne: Delphi-Tags eingefügt
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 15.12.03 09:20 
Drück doch einfach mal nach dem = STRG+Leertaste und schau nach, wie die Eigenschaft heißt, oder drücke mit dem Cursor auf TransferType auf F1, da müsste es ja dann auch stehen ;-)
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Mo 15.12.03 10:50 
Mmmmhhhh, ob Du es glaubst oder nicht: Das habe ich, aber finde bei mir keinen Fehler.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 15.12.03 11:00 
Hab grad mal nachgeschaut, Du musst die Unit IdFTPCommon einbinden (in uses), das macht er net automatisch.
Das findeste in so einem Fall auch in der Hilfe, einfach schauen, wo der Typ implementiert ist und schauen, ob diese Unit auch eingebunden wurde.
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Mo 15.12.03 11:55 
Danke Dir, ich habe nachgeschaut aber nicht gefunden...........