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.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 12