Autor Beitrag
Land-Gull
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 51

SuSe 9.2, WIN XP
D7 Enter
BeitragVerfasst: Mo 05.09.05 15:30 
Hi,

habe folgendes Problem:

Ich will überprüfen ob der Name, den ich in ein Edit Feld eingegeben hab mit dem Namen von Id3.Artist übereinstimmt.

ausblenden Delphi-Quelltext
1:
if GetID3(DirBox.Directory+'\'+SRec.Name).Artist = ArtistEdit.Text then Memo1.Lines.Add(inttostr(Nr)+'. '+ SRec.Name);					


Das Problem hierbei ist allerdings das Id3.Artist immer 30 Zeichen hat :x
Wie kann ich das machen das an den String in ArtistEdit.Text auch noch bis zur 30. Stelle Leerzeichen angehängt werden?

Edit: Bin mir allerdings grad nicht mehr sicher ob das überhaupt das Problem ist oder ob der Fehler wo anders liegt.

Edit2: Habe das Problem grad selber gelöst :lol: Es wurden noch Steuerzeichen mitkopiert.
Daher muss man statt GetId3(...) :arrow: Trim(GetID3(... schreiben.

Danke
Land-Gull Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 51

SuSe 9.2, WIN XP
D7 Enter
BeitragVerfasst: Mo 05.09.05 15:54 
Habe das Problem grad selber gelöst :lol: Es wurden noch Steuerzeichen mitkopiert.
Daher muss man statt GetId3(...) :arrow: Trim(GetID3(... schreiben.

Danke