dxBankSize%(bank%)

Parameters

bankhandle - handle assigned to the bank when created.

Description

Use this command to determine the size of an existing bank.

See also: CreateBank, ResizeBank, CopyBank.

Example

; dxBankSize, ResizeBank, CopyBank Example

; create a bank
bnkTest=CreateBank(5000)

; Fill it with dxRand Integers
For t = 0 To 4999
PokeByte bnkTest,t,dxRand(9)
Next

; Resize the bank
ResizeBank bnkTest,10000

; Copy the first half of the bank to the second half
CopyBank bnkTest,0,bnkTest,5000,5000

; dxPrint final dxBankSize
dxPrint dxBankSize(bnkTest)

Index