From 3d46bf900fd2b1452ef54aaace61bc8c9fe4805f Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sun, 17 Aug 2014 02:04:56 -0400 Subject: [PATCH] Add columnlist:GetColumnName --- objects/columnlist.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/objects/columnlist.lua b/objects/columnlist.lua index b5fc1ea..3f34657 100644 --- a/objects/columnlist.lua +++ b/objects/columnlist.lua @@ -677,6 +677,24 @@ function newobject:SetColumnName(id, name) end +--[[--------------------------------------------------------- + - func: GetColumnName(id) + - desc: gets a column's name +--]]--------------------------------------------------------- +function newobject:GetColumnName(id) + + local children = self.children + + for k, v in ipairs(children) do + if k == id then + return v.name + end + end + + return false + +end + --[[--------------------------------------------------------- - func: SizeToChildren(max) - desc: sizes the object to match the combined height