Menu

#134 ID3COM - can't write to id3v2 tag

happens every time
open
id3v2 tag (33)
5
2003-12-21
2003-06-11
No

Hi,
I'm trying to write ID3v2 tags but the assignment
doesn't seem to be remembered.
ie
oFrame.Field(ID3_FIELD_TEXT).Text(1) = "Whatever"

if i then try to msgbox the contents

MsgBox oFrame.Field(ID3_FIELD_TEXT).Text(1)

i get the old value - as if assignment never took place.

therefore the .saveV2Tag assignment doesn't work as
it's got nothing new to write.

Could you please help me sort this out.
Thanks
Alec

Discussion

  • Alec Doughty

    Alec Doughty - 2003-06-11
    • summary: ID3COM - --> ID3COM - can't write to id3v2 tag
     
  • Mark Szamrej

    Mark Szamrej - 2003-07-25

    Logged In: YES
    user_id=743955

    The assignment works for me. Have you tried this method:

    ID3_Frame newFrame;
    newFrame.SetID(frame);
    newFrame.Field(ID3FN_TEXTENC) = ID3TE_ASCII;
    newFrame.Field(ID3FN_TEXT).Add("Whatever");
    m_Tag.AddFrames(&newFrame, 1);

    I believe you need to make the call to AddFrames() in order
    to commit your changes.

    / mark

     
  • - 2003-08-06

    Logged In: YES
    user_id=474602

    See my SimpleID3 project
    (http://sourceforge.net/projects/simpleid3). It provides .NET
    and COM interfaces for id3lib.

     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-21
    • assigned_to: nobody --> t1mpy
     
  • gabriel

    gabriel - 2005-05-12

    Logged In: YES
    user_id=1154059

    I am having this problem too. Its as if you assign it a
    text value, but after the assignment has happened, I check
    it by using MsgBox oFrame.Field(ID3_FIELD_TEXT).Text(1) and
    it returns the old value as you have described. I think
    that ID3Com needs to be updated.

    szamrej: this doesnt help, that might work if I was
    strictly using id3lib. Any help with id3com would be
    appreciated. Thanks.

     

Log in to post a comment.