Entwickler-Ecke

Grafische Benutzeroberflächen (VCL & FireMonkey) - Prob mit UrlDownloadToFile


Delete - Do 14.08.03 16:38
Titel: Prob mit UrlDownloadToFile
Folgendes: Ich habe 3 label, jetzt möchte ich dass die Datei label1.caption+label2.caption+label3.caption heruntergeladen wird, logischerweise müsste es ja dann:

Delphi-Quelltext
1:
UrlDownloadToFile(nil, PChar(label1.caption +label2.caption +label3.caption), PChar('C:\asdf.txt'), 0nil) = 0;                    


Nur geht das leider nicht, weiss einer warum? :oops:


Aya - Do 14.08.03 16:42

Hi,

was genau geht denn daran nicht???

Au'revoir,
Aya


Delete - Do 14.08.03 16:49

Zitat:

Erzeugen
[Fehler] Unit1.pas(91): ':=' erwartet, aber '=' gefunden
[Fataler Fehler] Project1.dpr(7): Verwendete Unit 'Unit1.pas' kann nicht compiliert werden

UrlDownloadToFile(nil, PChar(label1.caption +label2.caption +label3.caption), PChar('C:\asdf.txt'), 0, nil) = 0;


Aya - Do 14.08.03 16:55

Hi,

was soll denn das = 0 am ende??
Wenn du da den rückgabewert überprüfen willst, muß das ganze in nen If-Then.

Au'revoir,
Aya~


Delete - Do 14.08.03 17:00

Ich hatte den Code hier ausm Forum, ohne das = 0 gehts ;)