# Store Text

Grammar — Store text value as key of section section in bank bank
FlagsNative | Action

Stores a Text value to the specified Bank. The Section and Key parameters determine where the value is stored in the bank file, and must be used to load the value later. You must save a bank after storing a value, otherwise the value will not exist to load later.

# Arguments

  • bank — Bank
  • string — Section
  • string — Key
  • text — Value

Returns — void

native void BankValueSetFromText(
	bank b,
	string section,
	string key,
	text value,
);

Category: [Bank / Store & Load](/galaxy/reference#bank-store &-load)

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L9327
BankValueSetFromText(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_1"), libCamp_gv_tSX_Tutorial_HistoryTitle[lv_index])
// L9328
BankValueSetFromText(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_2"), libCamp_gv_tSX_Tutorial_HistoryDescription[lv_index])