AxMemberExist
Result = AxMemberExist(Id, MemberName$)
 
Parameters:

    Id = Object Id
    MemberName$ = Name of the member to check
Returns:

    Result = 1 of the member exists; otherwise 0
 

     AxMemberExist checks if the member in MemberName$ exists and return 1 if it does or otherwise 0.



FACTS:


     * Members are public variables or public functions of the ActiveX object.



Mini Tutorial:



  
; Include ActiveX Library
  #Include "ActiveX"
  
; Register the AxDemo Dll
  RegisterAxDll("AxDemo.Dll")
  
; create a new object
  Id = NewAx("AxDemo.TestClass")
  
; check if the member called strVal exists
  Print AxMemberExist(Id, "strVar")
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  


Please NOTE: This code is for example purposes only.




This example would output.

  
  1
  

 
Related Info: About the ActiveX library | NewAx :
 


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