GetFreeBank
FreeBankIndex = GetFreeBank()
 
Parameters: NONE
Returns:

    FreeBankIndex = A free bank index
 

      GetFreeBank() will return the index of a bank that is not currently in use.



FACTS:


     * None



Mini Tutorial:


      This example requests a Free bank index, then using this index, we creates a bank of size 100. Then display the banks status information.

  
  
  MyBank=GetFreeBank()
  
; Create Memory Bank and make it 100 bytes in size
  CreateBank MyBank,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: BankQuantity | CreateBank | DeleteBank | GetBankQuantity | NewBank :
 


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