DeleteWorld
DeleteWorld WorldIndex
 
Parameters:

    WorldIndex = The Index of the world you wish to delete
Returns: NONE
 

      DeleteWorld deletes a static world from memory.



FACTS:


      * None



Mini Tutorial:


      This example requests a free world, creates the world buffer, displays it's status, deletes it and displays it's status again. So it's just showing the basic management.


  
; Create World
  MyWorld=NewWorld()
  
; Display the status of this world buffer
  Print GetWorldStatus(MyWorld)
  
; Delete the World
  DeleteWorld MyWorld
  
; Display the status of this world buffer
  Print GetWorldStatus(MyWorld)
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  




This example would output.

  
  1
  0
  

 
Related Info: CreateWorld | GetFreeWorld | GetWorldStatus | NewWorld :
 


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