Garry's Mod Wiki

DComboBox:GetOptionTextByData

  string DComboBox:GetOptionTextByData( string data )

Description

Returns an option's text based on the given data.

Arguments

1 string data
The data to look up the name of.

If given a number and no matching data was found, the function will test given data against each tonumber'd data entry.

Returns

1 string
The option's text value.

If no matching data was found, the data itself will be returned. If multiple identical data entries exist, the first instance will be returned.