GetFreeWorld
WorldIndex = GetFreeWorld()
 
Parameters: NONE
Returns:

    WorldIndex = The Index of a free world
 

      The GetFreeWorld function returns the index of free world buffer.


FACTS:


      * The function will return zero if there are NO free World buffers left




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.


  
; Request a Free World buffer
  MyWorld=GetFreeWorld()
  
; Create This World Buffer
  CreateWorld MyWorld
  
; Display the status of this world buffer
  Print GetWorldStatus(MyWorld)
  
; Delete the World buffer
  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 | DeleteWorld | GetWorldStatus | NewWorld :
 


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