PartyPlayerList:GetSelected( text, data )
Does anyone know how I can get the 2nd argument from this.
So I can like print( data ) separately.
Well is the data dependent on the first parameter?
So, I am using a DComboBox and have done DComboBox:AddChoice( "1StParam", "2ndParam" ), you can get both these parameters with DComboBox:GetSelected(), doing print( DComboBox:GetSelected() ) would print "1StParam 2ndParam", I want to know how to get "2ndParam" by its self.
So what you are really asking is how to get the second return value.
You can do this:
local ret1, ret2 = DComboBox:GetSelected()
and just use ret2.
Or, you can do this:
local returns = { DComboBox:GetSelected() }
and access it with returns[2].
thanks man
Sorry, you need to Log In to post a reply to this thread.