ISDBSongData::RenameByMask: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
m (added example and completed parameter description)
 
Line 4: Line 4:


{{MethodParameters  
{{MethodParameters  
  |Mask |String |Mask that specifies how to rename the track's filename.}}
  |Mask |String |Mask that specifies how to rename the track's filename. It must be in a compiled form, use [[ISDBTools::Mask2UFText]] and [[ISDBTools::UFText2Mask]] functions in order to convert between the internal and user friendly forms of masks.}}


===Method description===
===Method description===


Renames track using Mask.
Renames track using Mask.
===Example code===                   
<source lang="vb">
SD.RenameByMask("%A - %S")    ' Renames the file using the "<Artist> - <Title>" format
' SD represents a SongData object
</source>


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 20:38, 7 May 2007

CoClass SDBSongData, Interface ISDBSongData

Function RenameByMask(Mask As String) As Boolean


Parameters

Name Type Description
Mask String Mask that specifies how to rename the track's filename. It must be in a compiled form, use ISDBTools::Mask2UFText and ISDBTools::UFText2Mask functions in order to convert between the internal and user friendly forms of masks.


Method description

Renames track using Mask.

Example code

SD.RenameByMask("%A - %S")    ' Renames the file using the "<Artist> - <Title>" format

' SD represents a SongData object