View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006759 | MMW v4 | Framework: Scripts/Extensions | public | 2010-11-30 12:07 | 2010-11-30 12:27 |
Reporter | zvezdan | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0006759: ISDBAlbum::Name is read-only property, althought it is stated as read/write; problem with ISDBSongData::AlbumName | ||||
Description | SDBSongData.AlbumName = xxx works (maybe not as we expect), but SDBSongData.Album.Name = xxx doesn't work at all. You see, we have a big problem to just rename the album name. If I use SDBSongData.AlbumName = xxx, the program creates a new album with the specified name, instead to rename the existing album name. So, I though to use SDBSongData.Album.Name = xxx to just rename the album, but as I said that property is read-only. | ||||
Steps To Reproduce | Option Explicit Sub OnStartup() Dim oMenuItem Set oMenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0) oMenuItem.Caption = "Append album length to album name" oMenuItem.UseScript = Script.ScriptPath oMenuItem.OnClickFunc = "AppendAL" End Sub Sub AppendAL(oItem) Dim oSongData Dim oAlbum If SDB.SelectedSongList.Count > 0 Then Set oSongData = SDB.SelectedSongList.Item(0) Set oAlbum = oSongData.Album oAlbum.Name = oAlbum.Name & " (" & oAlbum.AlbumLengthString & ")" oAlbum.UpdateDB 'oSongData.UpdateDB 'oSongData.UpdateAlbum 'oSongData.UpdateArtist End If End Sub | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||