Jump to content

gridlist row names appear in numbers


drk

Recommended Posts

local musicTable = { 
    [ 'David Guetta - Where Dem Girls At' ] = 'http://199.167.195.194/wdga.mp3', 
    [ 'Coldplay - Paradise' ] = 'http://199.167.195.194/pd.mp3', 
    [ 'Coldplay - Viva la Vida' ] = 'http://199.167.195.194/vlv.mp3', 
    [ 'Ana Malhoa - Danza Kuduro' ] = 'http://199.167.195.194/dk.mp3', 
    [ 'Klaas - The Way' ] = 'http://199.167.195.194/tw.mp3', 
    [ 'Basshunter - All I ever wanted' ] = 'gfx/music/bh-aiew.mp3', 
    [ 'Whiz Khalifa - Black and Yellow' ] = 'gfx/music/wk-bay.mp3', 
    [ 'Skrillex - My name is Skrillex ( Remix )' ] = 'gfx/music/sx-mnis.mp3', 
    [ 'Italobrothers - Stamp on the Ground' ] = 'gfx/music/ib-sotg.mp3', 
    [ 'Madcon - Freaky like Me' ] = 'gfx/music/mc-flm.mp3', 
    [ 'Cut the Music - Greatest Deejay' ] = 'gfx/music/ctm-gd.mp3', 
    [ 'No Name - Time`s Vortex' ] = 'gfx/music/tv.mp3', 
    [ 'Manian - Welcome to the Club' ] = 'gfx/music/wttc.mp3', 
    [ 'Bon Jovi - It`s my Life' ] = 'gfx/music/iml.mp3', 
    [ 'Example - Changed the Way you Kissed Me' ] = 'gfx/music/ctwykm.mp3', 
    [ 'Example - Kickstart ( Bar 9 Remix )' ] = 'gfx/music/e-ksb9rx.mp3', 
    [ 'Ellie Goulding - Lights ( Remix )' ] = 'http://199.167.195.194/Lights.mp3', 
    [ 'Arkasia - New World Disorder' ] = '', 
    [ 'ATB - You are not Alone ( Remix )' ] = '' 
    } 

The table.

  --create the table in the gridlist 
   local column = guiGridListAddColumn(gui['list'],'Playlist',0.9); 
   guiGridListClear(gui['list']); 
    for name, url in pairs(musicTable) do 
     local name = guiGridListAddRow(gui['list']); 
     guiGridListSetItemText(gui['list'],name,column,tostring(name),false,false); 
   end; 

The code.

The names appear like numbers: 01,02,03,04,05...

Why? oO

Link to comment
--create the table in the gridlist 
   local column = guiGridListAddColumn(gui['list'],'Playlist',0.9); 
   guiGridListClear(gui['list']); 
    for name, url in pairs(musicTable) do 
     local row = guiGridListAddRow(gui['list']); 
     guiGridListSetItemText(gui['list'],row,column,tostring(name),false,false); 
   end; 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...