Sandbox: Difference between revisions
Jump to navigation
Jump to search
Nohitter151 (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This page is purely for testing | This page is purely for testing | ||
<syntaxhighlight lang="python" line='line'> | |||
def quick_sort(arr): | |||
less = [] | |||
pivot_list = [] | |||
more = [] | |||
if len(arr) <= 1: | |||
return arr | |||
else: | |||
pass | |||
</syntaxhighlight> | |||
[[Image:Example.png]] | [[Image:Example.png]] |
Revision as of 14:08, 7 December 2020
This page is purely for testing
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
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