Autor Beitrag
Manfred
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 22.10.11 01:05 
Hallo Delphi-Gemeinde,

ich habe ein Projekt, das ursprünglich auf D6 Prof. erstellt wurde in RAD XE geöffnet.

Neben den nervenaufreibenden und schier endlosen Codeanpassungen bleibt ein Problem:

ausblenden Delphi-Quelltext
1:
ftp.TransferType := ftBinary ;					


Fehlermeldung: "Undeklarierter Bezeichner: ftBinary"

Ich habe von Hand eine weitere TidFtp-Komponente hinzugefügt, um eventuell fehlende Units automatisch einzubinden, half jedoch nichts.
Offenbar fehlt mir eine Unit, aber welche?
In der Online-Doku konnte ich nicht erkennen, wo die Konstanten definiert sind.

_________________
Computer können schneller rechnen als wir, deshalb machen sie auch mehr Fehler
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19338
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 22.10.11 04:48 
Dafür kannst du einfach Strg festhalten und auf TransferType klicken. Dann noch einmal Strg + auf den Typ TIdFTPTransferType klicken und du landest in der Unit IdFTPCommon, wo der Typ deklariert ist. ;-)
Manfred Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 22.10.11 13:37 
Besten Dank.

Mir stellt sich noch die Frage, warum die Unit nicht automatisch importiert wird, wenn die Komponente auf die Form gesetzt wird.

_________________
Computer können schneller rechnen als wir, deshalb machen sie auch mehr Fehler
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19338
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 22.10.11 13:49 
Weil Delphi nicht vorhersehen kann, dass du die Deklaration aus dieser Unit nutzen möchtest. :nixweiss:

Was meinst du wie voll die uses-Liste wäre, wenn Delphi immer alle möglichen Units automatisch auf Verdacht hineinpacken würde...