FunctionExist
Status = FunctionExist(FunctionName$)
 
Parameters:

    FunctionName$ = Name of the function
Returns:

    Status = 1 if the function exists, 0 if it doesn't
 

     The FunctionExist function checks is a function exists. The function returns True(1) if it does, False(0) it if doesn't.


FACTS:


      * None


Mini Tutorial #1:


      This example checks if function exists in the code.

  
; check if the function TEST exists in this code ?
  Print FunctionExist("Test")
  
; check if the function TEST2 exists in this code ?
  Print FunctionExist("Test2")
  
  Sync
  WaitKey
  
  
Psub  Test()
  
EndPsub
  
  



Expected Output of this program is.

  
  1
  0
  




 
Related Info: CallFunction | Function | FunctionIndex | Functions&Psub | Psub :
 


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