Sandbox: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
MoDementia (talk | contribs) No edit summary  | 
				Nohitter151 (talk | contribs)  No edit summary  | 
				||
| Line 1: | Line 1: | ||
This page is purely for testing  | |||
| Line 30: | Line 21: | ||
<br>  | <br>  | ||
<br>  | <br>  | ||
| Line 45: | Line 32: | ||
=====[[Main Page]]=====  | =====[[Main Page]]=====  | ||
<big>[[Main Page]]</big>  | <big>[[Main Page]]</big>  | ||
==Numbered list==  | |||
# one  | |||
# two  | |||
# three  | |||
# four  | |||
# five  | |||
==Bulleted list==  | |||
?????  | |||
: a  | |||
: b  | |||
: c  | |||
{{MethodParameters}}  | {{MethodParameters}}  | ||
| Line 91: | Line 91: | ||
</source>  | </source>  | ||
__NOTOC__  | __NOTOC__  | ||
<div style="float: right; margin-left: 1em; margin-bottom: 0.5em; clear: right; background-color:#F9F9F9; border:1px solid #CCCCCC; font-size:95%; padding:5px;">  | |||
<div style="text-align: center;">'''Song title'''</div>  | |||
<div><table>  | |||
<tr style="background-color: #ddd;"><td>'''Scripting value'''</td><td>[[SDBSongData|Object SongData]] > [[ISDBSongData::Title|Title]]</td></tr>  | |||
<tr style="background-color: #f4f4f4;"><td>      ''Value type''</td><td>''String''</td></tr>  | |||
<tr style="background-color: #ddd;"><td>'''Database field'''</td><td>[[Songs_table|Table Songs]] > [[Songs_table#SongTitle|SongTitle]]</td></tr>  | |||
<tr style="background-color: #f4f4f4;"><td>      ''Field type''</td><td>''String''</td></tr>  | |||
<tr style="background-color: #ddd;"><td>'''Tracklist column'''</td><td>"Title"</td></tr>  | |||
</table></div>  | |||
</div>  | |||
{{MethodDeclaration|SDBSongData|ISDBSongData|Property Get/Let Title As String}}  | |||
Revision as of 04:38, 22 May 2008
This page is purely for testing
This html2wiki converter is very useful.

Main Page
Main Page
Main Page
Main Page
Numbered list
- one
 - two
 - three
 - four
 - five
 
Bulleted list
?????
- a
 - b
 - c
 
| Name | Type | Description | 
|---|
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}' A simple script that swaps the content of Title and Artist fields of selected tracks
Sub SwapArtistTitle
  ' Define variables
  Dim list, itm, i, tmp
  ' Get list of selected tracks from MediaMonkey
  Set list = SDB.CurrentSongList 
  ' Process all selected tracks
  For i=0 To list.count-1
    Set itm = list.Item(i)
    ' Swap the fields
    tmp = itm.Title
    itm.Title = itm.ArtistName
    If itm.AlbumArtistName = itm.ArtistName Then     ' Modify Album Artist as well if is the same as Artist
      itm.AlbumArtistName = tmp
    End If
    itm.ArtistName = tmp
  Next
  ' Write all back to DB and update tags
  list.UpdateAll
End Sub
Song title
| Scripting value | Object SongData > Title | 
| Value type | String | 
| Database field | Table Songs > SongTitle | 
| Field type | String | 
| Tracklist column | "Title" | 
CoClass SDBSongData, Interface ISDBSongData
Property Get/Let Title As String