How to retrieve values from a /DProperties/ category row panel item
2 replies, posted
Well, as it says.
[url]https://wiki.garrysmod.com/page/Category:DProperties[/url]
I must read from a DProperties panel item, but I see there is no "GetValue" defined locally for it.
This method may be inherited from the base panel but i did not happen to find it there.
My closest guess is that inherits the Get/Set -ing the value from here:
[url]https://wiki.garrysmod.com/page/Category:DTextEntry[/url]
For example I have a:
[code]
local rwHit = prSen:CreateRow("Selection", "Class" )
rwHit:Setup("Generic")
rwHit:SetValue("Hello World!")
[/code]
So guys, how can I "get" the "Hello World!" value from [code] rwHit [/code] into a local variable: [code] local str = rwHit:GetValue() [/code] ?
Does GetValue() not work?
EDIT: Look through the source dode for DProperties, and figure out what SetValue() does, and look for a GetValue() or similar function.
How about you start with the example on the goddamn wiki page you linked?
Sorry, you need to Log In to post a reply to this thread.