by Teknojnky » Wed Mar 22, 2006 11:44 am
is this still the most current scripting help?
I am getting an error trying to use the example code for adding option sheets:
Code: Select all
Example code
Sub OnStartup
' Create our own option sheet
ind = SDB.UI.AddOptionSheet( "Test", Script.ScriptPath, "InitSheet", "SaveSheet", 0)
' Create another sheet as a child of the previous one
SDB.UI.AddOptionSheet "Test2", Script.ScriptPath, "InitSheet2", "", ind
' Create one more sheet that is a child of Player sheet
SDB.UI.AddOptionSheet "Player test", Script.ScriptPath, "InitSheet2", "", -2
End Sub
Sub InitSheet( Sheet)
' Prepare the sheet here...
End Sub
Sub SaveSheet( Sheet)
' Save entered values
End Sub
The error:
"Error happened during script execution:
Unknown name"
MM 2.5.2.951
[quote="onkel_enno"]Because I'm always searching for the latest Beta of the Scripting Help file, I set my bookmark here :)
http://www.mediamonkey.com/beta/MediaMonkeyScripting.chm[/quote]
is this still the most current scripting help?
I am getting an error trying to use the example code for adding option sheets:
[code]
Example code
Sub OnStartup
' Create our own option sheet
ind = SDB.UI.AddOptionSheet( "Test", Script.ScriptPath, "InitSheet", "SaveSheet", 0)
' Create another sheet as a child of the previous one
SDB.UI.AddOptionSheet "Test2", Script.ScriptPath, "InitSheet2", "", ind
' Create one more sheet that is a child of Player sheet
SDB.UI.AddOptionSheet "Player test", Script.ScriptPath, "InitSheet2", "", -2
End Sub
Sub InitSheet( Sheet)
' Prepare the sheet here...
End Sub
Sub SaveSheet( Sheet)
' Save entered values
End Sub
[/code]
The error:
"Error happened during script execution:
Unknown name"
MM 2.5.2.951