Autor Beitrag
Rattergott
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19

Win 2k
D7 Ent
BeitragVerfasst: Do 19.05.05 13:56 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for i := 0 to length(bsparray)-1 do
begin
if bsparray[i]= '*.wmv' then
 Memo1.Lines.Add(bsparray[i]);
 end;


ich möchte gerne dass quasi aus dem array alle dateiendungen mit wmv in das memo1 - feld geladen werden .... jedoch geht das nciht

beispielsweise soll

test.wmv
xyz
qvc.wmv
php

sollen nur test.wmv und qvc.wmv ins memofeld geladen werden!

was davor steht also vom dem .wmv soll durch einen platzhalter ersetzt werden!

Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 19.05.05 14:02 
Schau mal in der Delphi-Hilfe unter ExtractFileExt nach. Damit solltest du weiterkommen.

_________________
We are, we were and will not be.
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Do 19.05.05 14:03 
ausblenden Delphi-Quelltext
1:
if pos('.wmv',bsparray[i]) <> 0 then Memo1.Lines.Add(bsparray[i]);					

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Rattergott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19

Win 2k
D7 Ent
BeitragVerfasst: Do 19.05.05 14:08 
danke hat geklappt!