# Save Data Table Value (Text Tag)

Grammar — Save value as name in the scope|Global/Local data table
FlagsAction

Saves a text tag value into a data table. Data tables allow you to store and recall values using a string identifier. If you save a data table value using a string identifier that already exists, you will overwrite the old value, even if it is a different data type than the value you are saving.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name
  • int [ preset::TextTag ] — Value

Returns — void

void libNtve_gf_SaveDataTableValueTextTag(
	bool lp_scope,
	string lp_name,
	int lp_value,
);

Category: Data Table / Save Value

# Examples

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L3331
libNtve_gf_SaveDataTableValueTextTag(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_TextTag, lp_unit, lp_index), lp_textTag)

# mods/swarm.sc2mod

SwarmLib.galaxy

// L164
libNtve_gf_SaveDataTableValueTextTag(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_TextTag, lp_unit, lp_index), lp_textTag)