GetShapeStatus
State = GetShapeStatus(ShapeIndex)
 
Parameters:

    ShapeIndex = The Index of the shape you wish to query
Returns:

    State = The current state of this shape (1= created, 0 = Not in use)
 

      The GetShapeStatus function returns if a shape index is currently in use or not. The function will return a True value 1) if it's in use, or False(0) it's not.



FACTS:


      * None



Mini Tutorial:


      This example creates a shape, displays it's status, delete it's and displays it status again.


  
; Create MySHape, with room for 10 vertex and
; 10 edge connections
  MyShape=NewShape(10,10)
  
; Display this shapes status
  Print GetShapeStatus(MyShape)
  
; Delete this newly created shape from memory
  DeleteShape  MyShape
  
; Display this shapes status after deleting
  Print GetShapeStatus(MyShape)
  
; Display the screen and wait for a key press
  Sync
  WaitKey
  
  




This example would output.

  
  1
  0
  

 
Related Info: CreateShape | DeleteShape :
 


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