From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBTreeNode, Interface ISDBTreeNode

Property Get/Let OnEdited As String

Property description

Name of an event function in ISDBTreeNode::UseScript file that is called when a tree node is edited (user modified its text). This function takes two parameters:

The node where edit operation occured
Text entered by user

Example code

' The function can look like:

Sub LyricistEdited( Node, NewText)
  SDB.Database.ExecSQL( "UPDATE AddSongInfo SET TextData='" & NewText & "' WHERE DataType=200 and TextData='" & Node.CustomData & "'")
  Node.CustomData = NewText
  Node.Caption = NewText
End Sub

Related Topics