ISDBTreeNode::OnEdited

From MediaMonkey Wiki
Revision as of 18:10, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

Node
The node where edit operation occured
NewText
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