GetBankSize
Size = GetBankSize(BankIndex)
 
Parameters:

    BankIndex = The Index Identifier of the bank that you wish to check
Returns:

    Size = The Size in bytes of this bank
 

      GetBankSize will return the size (in bytes) of a memory bank.



FACTS:


      * None



Mini Tutorial:


      This example requests a Free bank index, then using this index creates a bank. Then displays this newly created banks status and size information.


  
  
; Create Memory Bank and make it 100 bytes in size
  MyBank=NewBank(100)
  
; Display it's status and size
  Print "My Bank Index:"+Str$(MyBank)
  Print "Status Of My Bank:"+Str$(GetBankStatus(MyBank))
  Print "Size Of My Bank:"+Str$(GetBankSize(MyBank))
  
; Display the Screen And Wait For the user To press a key
  Sync
  WaitKey
  
  



This example would output.

  
  My Bank Index:1
  Status Of My Bank:1
  Size Of My Bank:100
  

 
Related Info: CreateBank | DeleteBank | GetBankPTR | GetBankStatus | NewBank :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com