GetWorldStatus
State = GetWorldStatus(WorldIndex)
 
Parameters:

    WorldIndex = The Index of the world buffer you wish to query
Returns:

    State = The current state of this world (0= free for use, 1 = in use)
 

      The GetWorldStatus function returns state of a world. If the function returns True(1) the world has been created and is in use, if not it'll return a False(0)



FACTS:


      * None



Mini Tutorial:


      This example requests a free world buffer, creates the world buffer, displays it's status, delete it and displays it's status again.

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




This example would output.

  
  1
  0
  

 
Related Info: CreateWorld | DeleteWorld | GetFreeWorld :
 


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