• DListView get data
    2 replies, posted
say i had a dlistview with 3 columns and 5 rows, the second row was jim, bob, jeff, how would i get the data from the dlistview into a table? so if i rightclicked i could print a table like {"jim","bob","jeff"}, i know how to call a function on right click just not print the table
[CODE]DListView.OnClickLine = function(self, line) local tbl = {} for i = 1, #self.Columns do table.insert(tbl, line:GetColumnText(i)) end PrintTable(tbl) end[/CODE] Untested, but should work
[QUOTE=iJohnny;49197993][CODE]DListView.OnClickLine = function(self, line) local tbl = {} for i = 1, #self.Columns do table.insert(tbl, line:GetColumnText(i)) end PrintTable(tbl) end[/CODE] Untested, but should work[/QUOTE] thanks ;)
Sorry, you need to Log In to post a reply to this thread.