Sandbox: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
This page is purely for testing
This page is purely for testing
<syntaxhighlight lang="bash">
var x = 1;
</syntaxhighlight>


[[Image:Example.png]]
[[Image:Example.png]]
Line 48: Line 52:


{{MethodParameters}}
{{MethodParameters}}
<syntaxhighlight lang="csharp">
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}
</syntaxhighlight>
<syntaxhighlight lang="vb">
' 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
</syntaxhighlight>
__NOTOC__





Latest revision as of 02:45, 6 January 2021

This page is purely for testing

var x = 1;

File:Example.png








File:Example.png











This html2wiki converter is very useful.

Thumb test

Main Page

Main Page

Main Page

Main Page

Main Page

Numbered list

  1. one
  2. two
  3. three
  4. four
  5. five

Bulleted list

?????

a
b
c
Name Type Description



Song title
Scripting valueObject SongData > Title
      Value typeString
Database fieldTable Songs > SongTitle
      Field typeString
Tracklist column"Title"

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Title As String