# Store String
Grammar — Store string value as key of section section in bank bank
Flags —Native
|Action
Stores a String 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
— Bankstring
— Sectionstring
— Keystring
— Value
Returns — void
native void BankValueSetFromString(
bank b,
string section,
string key,
string value,
);
# Related
Category: [Bank / Store & Load](/galaxy/reference#bank-store &-load)
- [F] —
void
— Store Boolean — ( BankValueSetFromFlag ) - [F] —
void
— Store Integer — ( BankValueSetFromInt ) - [F] —
void
— Store Point — ( BankValueSetFromPoint ) - [F] —
void
— Store Real — ( BankValueSetFromFixed ) - [F] —
void
— Store String — ( BankValueSetFromString ) - [F] —
void
— Store Text — ( BankValueSetFromText ) - [F] —
void
— Store Unit — ( BankValueSetFromUnit ) - [F] —
bool
— Load Boolean Value — ( BankValueGetAsFlag ) - [F] —
int
— Load Integer Value — ( BankValueGetAsInt ) - [F] —
point
— Load Point Value — ( BankValueGetAsPoint ) - [F] —
fixed
— Load Real Value — ( BankValueGetAsFixed ) - [F] —
string
— Load String Value — ( BankValueGetAsString ) - [F] —
text
— Load Text Value — ( BankValueGetAsText ) - [F] —
unit
— Restore Unit — ( BankValueGetAsUnit ) - [F] —
unit
— Last Restored Unit — ( BankLastRestoredUnit )
# Examples
# campaigns/libertystory.sc2campaign
// L8773
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
// L9329
BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_3"), libCamp_gf_TS_Tutorial_ConvertImageToString(libCamp_gv_tSX_Tutorial_HistoryIcon[lv_index]))
// L9330
BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_4"), libCamp_gf_TS_Tutorial_ConvertMovieToString(libCamp_gv_tSX_Tutorial_HistoryMovie[lv_index]))
# campaigns/swarmstory.sc2campaign
// L14088
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
# campaigns/swarmstoryutil.sc2mod
// L538
BankValueSetFromString(lv_storyBank, lv__SectionName, "DebugStoryScene", ("ScriptedScenes" + ";" + (lib281DEC45_gv_zSSX_DebugStoryScene)))
# campaigns/voidstory.sc2campaign
// L7993
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
# mods/missionpacks/campaigncommon.sc2mod
// L3902
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
# mods/starcoop/starcoop.sc2mod
// L4864
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
# mods/voidprologue.sc2mod
// L6803
BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value)
# mods/warcoop/warcoopdata.sc2mod
// L665
BankValueSetFromString(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key, lp_value)