Skip to content

CreateBank

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

CreateBank

CreateBank:Int32 size:Int32=0
Parameter Mode Type Default Description
size In Int32 0 Size in bytes. Defaults to 0.

Returns: A bank handle.

Description

Creates a bank of the given size, filled with zeros. A size of 0 is allowed, and the bank can grow later with ResizeBank. Free it with FreeBank when you are done.

Examples

bank = CreateBank(8)
PokeInt bank, 0, 123456
Print PeekInt(bank, 0)
FreeBank bank
123456

Related Commands

BankSize, CopyBank, FreeBank, ResizeBank

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally