by Orthimnas » Thu Apr 27, 2006 12:39 pm
I was having the same problem, where I would get an error dialog with general errors over it.
I got it to work flawlessly by making the following adjustments:
1) In internet explorer, changing my "Internet" security settings to enable "Initialize and script ActiveX controls not marked as safe"
2) Added in a reference to Data in Sub SaveClick - updated code:
- Code: Select all
Sub SaveClick (ClickedBtn)
Dim res,str,pos,lng,song,Data
res = SDB.MessageBox("Are you sure you wish to save your changes?",mtConfirmation,Array(mbOk,mbCancel))
Set Data = SDB.Objects("LyricData")
If res = 1 Then
str = ""
pos = 1
If Data.Item("title") <> "" Then
str = str&"[ti:"&Data.Item("title")&"]"&vbcrlf
End If
If Data.Item("artist") <> "" Then
str = str&"[ar:"&Data.Item("artist")&"]"&vbcrlf
End If
If Data.Item("author") <> "" Then
str = str&"[au:"&Data.Item("author")&"]"&vbcrlf
End If
If Data.Item("album") <> "" Then
str = str&"[al:"&Data.Item("album")&"]"&vbcrlf
End If
If Data.Item("version") <> "" Then
str = str&"[ve:"&Data.Item("version")&"]"&vbcrlf
End If
Do While Data.Item("time"&pos) <> ""
lng = Clng(Data.Item("time"&pos))
If Right(str,2) <> vbcrlf Then str=str&vbcrlf
str = str&settime(lng)
str = str&Data.Item("line"&pos)
pos = pos + 1
Loop
Set song = SDB.Player.CurrentSong
song.Lyrics = str
song.UpdateDB
End If
Set Data = Nothing
End Sub
Now it works perfectly - except that little COM error. It doesn't freeze my system, but it does make me click "Yes" to allow closing. It seems to be hinged on the use of Internet Explorer. Even if I close it before I close MM, it gives me the error.
Thanks for a great product!
~ Orthimnas ~
I was having the same problem, where I would get an error dialog with general errors over it.
I got it to work flawlessly by making the following adjustments:
1) In internet explorer, changing my "Internet" security settings to enable "Initialize and script ActiveX controls not marked as safe"
2) Added in a reference to Data in Sub SaveClick - updated code:
[code]Sub SaveClick (ClickedBtn)
Dim res,str,pos,lng,song,Data
res = SDB.MessageBox("Are you sure you wish to save your changes?",mtConfirmation,Array(mbOk,mbCancel))
Set Data = SDB.Objects("LyricData")
If res = 1 Then
str = ""
pos = 1
If Data.Item("title") <> "" Then
str = str&"[ti:"&Data.Item("title")&"]"&vbcrlf
End If
If Data.Item("artist") <> "" Then
str = str&"[ar:"&Data.Item("artist")&"]"&vbcrlf
End If
If Data.Item("author") <> "" Then
str = str&"[au:"&Data.Item("author")&"]"&vbcrlf
End If
If Data.Item("album") <> "" Then
str = str&"[al:"&Data.Item("album")&"]"&vbcrlf
End If
If Data.Item("version") <> "" Then
str = str&"[ve:"&Data.Item("version")&"]"&vbcrlf
End If
Do While Data.Item("time"&pos) <> ""
lng = Clng(Data.Item("time"&pos))
If Right(str,2) <> vbcrlf Then str=str&vbcrlf
str = str&settime(lng)
str = str&Data.Item("line"&pos)
pos = pos + 1
Loop
Set song = SDB.Player.CurrentSong
song.Lyrics = str
song.UpdateDB
End If
Set Data = Nothing
End Sub[/code]
Now it works perfectly - except that little COM error. It doesn't freeze my system, but it does make me click "Yes" to allow closing. It seems to be hinged on the use of Internet Explorer. Even if I close it before I close MM, it gives me the error.
Thanks for a great product!
~ Orthimnas ~