ISDBSongData::ParseText: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (small change to example) |
||
Line 13: | Line 13: | ||
===Example code=== | ===Example code=== | ||
<source lang="vb"> | <source lang="vb"> | ||
SD.ParseText( "Abba - Waterloo", "%A - %S") | SD.ParseText("Abba - Waterloo", "%A - %S") ' "Abba" --> field ArtistName | ||
' "Waterloo" --> field Title | |||
' SD represents a SongData object | |||
</source> | </source> | ||
Revision as of 20:41, 7 May 2007
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.
Example code
SD.ParseText("Abba - Waterloo", "%A - %S") ' "Abba" --> field ArtistName
' "Waterloo" --> field Title
' SD represents a SongData object