# Store Unit
Grammar — Store unit value|Unit as key of section section in bank bank
Flags —Native
|Action
Stores a Unit in the specified Bank. The Section and Key parameters determine where the Unit is stored in the bank file, and must be used to restore the unit later. You must save a bank after storing a value, otherwise the value will not exist to load later. Unit values are recalled with the “Restore Unit” action.
# Arguments
bank
— Bankstring
— Sectionstring
— Keyunit
— Value
Returns — void
native void BankValueSetFromUnit(
bank b,
string section,
string key,
unit value,
);
# Related
Category: [Bank / Store & Load](/galaxy/reference#bank-store &-load)
- Store Boolean —
void
— BankValueSetFromFlag - Store Integer —
void
— BankValueSetFromInt - Store Point —
void
— BankValueSetFromPoint - Store Real —
void
— BankValueSetFromFixed - Store String —
void
— BankValueSetFromString - Store Text —
void
— BankValueSetFromText - Store Unit —
void
— BankValueSetFromUnit - Load Boolean Value —
bool
— BankValueGetAsFlag - Load Integer Value —
int
— BankValueGetAsInt - Load Point Value —
point
— BankValueGetAsPoint - Load Real Value —
fixed
— BankValueGetAsFixed - Load String Value —
string
— BankValueGetAsString - Load Text Value —
text
— BankValueGetAsText - Restore Unit —
unit
— BankValueGetAsUnit - Last Restored Unit —
unit
— BankLastRestoredUnit
# Examples
— None found —