Autor Beitrag
Luncustaf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: So 13.04.03 11:02 
hi,

ich lese hier id3tag's von mehreren mp3 dateien aus nun will ich überprüfen ob dieser leer ist. alles was ich bisher probiert habe funktioniert nicht :(

so hab ich es probiert

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
  with ID3Tag do begin
    ID:=copy(Buffer,1,3);
    Titel:=copy(Buffer,4,30);
    Artist:=copy(Buffer,34,30);
    Album:=copy(Buffer,64,30);
    Year:=copy(Buffer,94,4);
    Comment:=copy(Buffer,98,30);
    Genre:= ord(Buffer[128]);
  end;//with
    with frmzentral.alvzentral.Items.Add do
    begin
        Caption := id3tag.Titel;
     if id3tag.artist = '' then
     begin
       SubItems.Text := 'xxx';
     end
     else begin
        SubItems.Text:= id3tag.Artist;
     end;
        SubItems.Append(id3tag.Album);
        SubItems.Append(id3tag.Year);
        SubItems.Append(size);
    end;//with



ich shcau ob der id3tag leer ist und wenn ja soll in das feld xxx geschrieben werden :/ das funktioniert aber nicht


gr€€tz
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: So 13.04.03 11:10 
Falls ID3-Tags vorliegen hat ID den Wert 'TAG':
ausblenden Quelltext
1:
2:
3:
...
if ID3Tag.ID <> 'TAG' then
   ShowMessage('Keine ID3Tags vorhanden!');
[/code]

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Luncustaf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: So 13.04.03 11:16 
hi,

danke für die shcnelle antwort es klappt einwandfrei. nur is das prob das nicht immer jedes feld ausgefüllt ist :/
wie bekomme ich das raus da es ja mit der frage nach '' nicht klappt :(


gr€€tz