# Value From Data Table (Text)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a text value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name

Returns — text

native text DataTableGetText(bool global, string name);

Category: Data Table / Load Value

# Examples

# mods/heroesdata.stormmod

GameLib.galaxy

// L2587
DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Name_C))
// L2593
DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Suffix_C))
// L2629
DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Tooltip_C))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L9333
DataTableGetText(true, (libCOOC_gf_CS_ObjectiveTableString(lp_objective) + "_" + "CustomToken"))