JVCL Help:TJvID3Frames.Add

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Inserts a new frame to the end of the Frames array.


Pascal

 procedureAdd(Frame: TJvID3Frame);


Parameters

Parameters Description
Frame: TJvID3Frame Specifies the frame to add.


Description

Applications do not normally call the Add method directly. When frame objects are created, Add is called automatically by the tag controller.
Certain frames may only appear once in a tag regardless of its value. For example, there may only be one fiAlbum frame in a tag. Therefore use FindOrCreate to add frames to the tag, which checks whether there already exists such frame in the tag. For example:
var

 TextFrame: TJvTextFrame;
PictureFrame: TJvPictureFrame;
begin
TextFrame := TJvTextFrame.FindOrCreate(MyTagController, fiAlbum);
TextFrame.Text := 'Some album';


 PictureFrame := TJvPictureFrame.FindOrCreate(MyTagController, ptBand);
PictureFrame.MIMEType := 'image/jpeg';
PictureFrame.LoadFromFile('somepicture.jpg');
end;


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page