ISDBSongData::ParseText

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBSongData, Interface ISDBSongData

Function ParseText(TextData As String, Mask As String) As Long


Parameters

Name Type Description
TextData String Text to be parsed.
Mask String Mask that specifies how to parse the text. 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

A string is parsed into fields of SDBSongData according to the given mask.

It might be necessary to first clear the fields that you want to parse values into. E.g. in the example below, you first have to clear SD's ArtistName and Title fields.

Example code

SD.ParseText("Abba - Waterloo", "%A - %S")    ' "Abba" --> field ArtistName
                                              ' "Waterloo" -->  field Title
' SD represents a SongData object