DeleteBank
DeleteBank BankIndex
 
Parameters:

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

      DeleteBank will free a memory bank from memory.



FACTS:


      * none




Mini Tutorial:


      This simple example Creates a bank and display it's status and size.

  
; Create Memory Bank #1 and make it 1000 bytes in size
  CreateBank 1,1000
  
; Display the status of this bank
  If GetBankStatus(1)=true
     Print "Bank Satus:"+Str$(GetBankStatus(1))
     Print "Bank Size:"+Str$(GetBankSize(1))
  Else
     Print "Bank Doesn't Exist"
  EndIf
  
  
; Delete the Bank  #1 from memory.
  DeleteBank 1
  
  
; Display the status of this bank
  If GetBankStatus(1)=true
     Print "Bank Satus:"+Str$(GetBankStatus(1))
     Print "Bank Size:"+Str$(GetBankSize(1))
  Else
     Print "Bank Doesn't Exist"
  EndIf
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  
  




This example would output.

  
  Bank Status: 1
  Bank Size: 1000
  Bank Doesn't Exist
  

 
Related Info: CreateBank | GetBankSize | GetBankStatus | Memory | NewBank :
 


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