# Store String

Grammar — Store string value as key of section section in bank bank
FlagsNative | 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 — Bank
  • string — Section
  • string — Key
  • string — Value

Returns — void

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

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

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:8773

    }

    BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
}

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9329

        BankValueSetFromText(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_1"), libCamp_gv_tSX_Tutorial_HistoryTitle[lv_index]);
        BankValueSetFromText(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_2"), libCamp_gv_tSX_Tutorial_HistoryDescription[lv_index]);
        BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_3"), libCamp_gf_TS_Tutorial_ConvertImageToString(libCamp_gv_tSX_Tutorial_HistoryIcon[lv_index]));
        BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_4"), libCamp_gf_TS_Tutorial_ConvertMovieToString(libCamp_gv_tSX_Tutorial_HistoryMovie[lv_index]));
    }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9330

        BankValueSetFromText(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_2"), libCamp_gv_tSX_Tutorial_HistoryDescription[lv_index]);
        BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_3"), libCamp_gf_TS_Tutorial_ConvertImageToString(libCamp_gv_tSX_Tutorial_HistoryIcon[lv_index]));
        BankValueSetFromString(lp_targetBank, lv__SectionName, (IntToString(lv_index) + "_4"), libCamp_gf_TS_Tutorial_ConvertMovieToString(libCamp_gv_tSX_Tutorial_HistoryMovie[lv_index]));
    }
    lv__SectionName = libCamp_gf_TS_BankSectionName("StoryState");

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14088

    }
    else {
        BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
    }
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:538

    lib281DEC45_gf_ZSS_SaveConversations(lv_storyBank, "StoryConversations");
    lv__SectionName = "Debug";
    BankValueSetFromString(lv_storyBank, lv__SectionName, "DebugStoryScene", ("ScriptedScenes" + ";" + (lib281DEC45_gv_zSSX_DebugStoryScene)));
    BankSave(lv_storyBank);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7993

    }
    else {
        BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
    }
}

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:3902

    }
    else {
        BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
    }
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:4864

    }
    else {
        BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
    }
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6803

    }
    else {
        BankValueSetFromString(lp_bank, lp_section, lp_key, lp_value);
    }
}

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:665

    // Automatic Variable Declarations
    // Implementation
    BankValueSetFromString(libWCdr_gv_w3CBank[lp_player], lp_section, lp_key, lp_value);
    BankSave(libWCdr_gv_w3CBank[lp_player]);
}