CallAxStringFunc
Result$ = CallAxStringFunc(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 CallAxStringFunc to call a function that returns a string value.





Mini Tutorial:




  
; Register the AxDemo Dll
  RegisterAxDll("AxDemo.Dll")
  
; create a new object
  Id = NewAx("AxDemo.TestClass")
  
; Build a new parameter list for the function "ConcatStrings"
; it requires two string values that will be concatenated
  AddAxStringParam(Id, "Hello, ")
  AddAxStringParam(Id, "ActiveX!")
  
; Call an object's function "ConcatStrings"
  Print CallAxStringFunc(Id, "ConcatStrings")
  
; Clear the parameter list
  ClearAxParams Id
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Hello, ActiveX
  



 
Related Info: CallAxFloatFunc | CallAxFunc | CallAxIntFunc :
 


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