CallAxFunc
CallAxFunc Id, FuncName$
 
Parameters:

    Id = Id of an ActiveX object
    FuncName$ = Name of the function to call
Returns: NONE
 

      Use CallAxFunc to call a function that does not return any values.




Mini Tutorial:




  
; Include ActiveX Library
  #Include "ActiveX"
  
; Register the AxDemo Dll
  RegisterAxDll("AxDemo.Dll")
  
; create a new object
  Id = NewAx("AxDemo.TestClass")
  
; Build a new parameter list for the function "showMsg"
; it only requires one string parameter (the text to be
; displayed in the Message box:
  AddAxStringParam(Id, "This is a message for you.")
  
; Call an object's function "showMsg"
  CallAxFunc Id, "showMsg"
  
; Clear the parameter list
  ClearAxParams Id
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  


Please NOTE: This code is for example purposes only.




 
Related Info: About the ActiveX library | AddAxFloatParam | AddAxIntParam | AddAxStringParam | CallAxFloatFunc | CallAxIntFunc | CallAxStringFunc :
 


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