ID3tag11.cls

ID3 tags are used to store information in multimedia files, commonly MP3 files. This class manages version 1.0 and 1.1 ID3 tags.

History:

  • 04.09.2001, version 1.0.

Properties:

  • Album as String: Gets / sets the name of the album.
  • Artist as String: Gets / sets the name of the artist.
  • Comment: Gets / sets an additional comment.
  • FileExists as Boolean (read-only): Returns True if the file pointed to exists.
  • FileName as String: Path to the file to edit its ID3 tag.
  • Genre as enGenres: Here you set the genre of the song. You can select from a set of predefinied genres in the enGenres enumeration.
  • HasID3tag as Boolean (read-only): Returns True if the file pointed to already has an ID3 tag, or False otherwise.
  • Name as String: Name.
  • SongNumber as Integer: Must be between 0 and 255. Here you can set the number of the track in the album.
  • Year as Integer: Must be between 0 and 9999.

Methods:

  • Load as Boolean: Load the ID3 tag in the file given in FileName, if any exists. Returns True if successful.
  • Save as Boolean: Saves ID3 information to the file specified in FileName. Returns True if successful.
  • RemoveTag as Boolean: Removes the ID3 tag from the file. Returns True if successful.
  • Clear: Cleares the object to start working from the scratch.

About ID3 tags:

ID3 tags are composed by fields of fixed size. The fields Name, Artist, Album and Comment cannot be longer than 30 characters each. If a song number is specified in SongNumber, then the Comment field will not be able to have more than 28 characters.

 

(5 Kb)