View Single Post
03/17/20, 03:13 PM   #10
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Lua has a short hand way for defining member functions. When they are defined with function myTable:myFunction(a, b) it means the same as writing function myTable.myFunction(self, a, b).
When you call a method the same applies. For control instances you can assume all methods use this shorthand way, so what you are actually doing right now is passing the value to self instead of the expected argument. You need to either call UiW.SetValue(UiW, x) or for short UiW:SetValue(x).
  Reply With Quote