CallAxIntFunc
Result = CallAxIntFunc(Id, FuncName$)
 
Parameters:

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

    Result = value returned from the ActiveX function
 

     Use CallAxIntFunc to call a function that returns an integer value.



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 "Mul"
; it requires two integer values that will be multiplied
  AddAxIntParam(Id, 3)
  AddAxIntParam(Id, 3)
  
; Call an object's function "Mul"
  Print CallAxIntFunc(Id, "Mul")
  
; 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.



This example would output.

  
  9
  



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


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