GetBankStatus
Flag = GetBankStatus(BankIndex)
 
Parameters:

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

    Flag = This flags holds the state of the bank. 0 = Not in use, 1 = is in use
 

      GetBankStatus returns the current state of a memory bank. If the bank exists, GetBankStatus will return a True(1), otherwise it'll return False(0).




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 | GetBankSize | NewBank :
 


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