Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mo 28.04.03 11:49 
Hey Leutz,

ich weiß , ich nerve aber: ich hab a Problem: Ich will per URLDownloadToFile(...) mehrere Urls aus einem StringGrid ziehen.

Wie geht das???

G-man

Moderiert von user profile iconTino: Titel geändert.
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Mo 28.04.03 13:10 
Titel: Simple ...
Einfach per for-Schleife die einzelnen Strings durchgehen ...

Also nach dem Motto

ausblenden Quelltext
1:
2:
3:
4:
5:
var lIndex;
begin
 for lIndex:=0 to eGird.Column[x].Count-1 do
  UrlToFile(eGird.Column[x].Items[lIndex]);
end;


Habe leider gerade keine Zeit alles perfekt auszuschreiben, aber ich denke mal, daß Gerüst hilft dir schon sicher weiter[/code]

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Di 29.04.03 13:10 
thnx aber:
welcher Datentyp ist die Variable???

G-Man
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Di 29.04.03 13:38 
Titel: Oki - scheint doch ein Prob zu sein ...
Hab mal nachgesehen und habs jetzt exactlement ;-)

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure CopyColumn(AGrid: TStringGrid; AColumn: integer);
var 
  lIndex: integer;
begin
  for lIndex:=0 to AGrid.RowCount-1 do
    UrlDownloadToFile(AGrid.Cells[AColumn,lIndex]);
end;


Geht also doch ein bisserl anders - aber im Prinzip gleich.
Damit dürfte es kein Prob sein, obwohl ich den Syntax von URLDownloadToFile nicht kenne (steht nicht in der D7 Hilfe und ich verwende für sowas Indy).

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Mi 30.04.03 09:51 
Cool danke,

ich probiers mal aus...

G-man