NewAx
Id = NewAx(ClassName$)
 
Parameters:

    ClassName$ = Name of the class the object will be created from
Returns:

    Id = Id of the new object
 

     NewAx creates a new ActiveX object from the class specified in ClassName$ and returns its Id.


FACTS:


     * After calling NewAx you can access the variables and function of the object.



Mini Tutorial:




  
; Include the ActiveX library
  #Include "ActiveX"
  
; Register the AxDemo Dll
  RegisterAxDll("AxDemo.Dll")
  
; create a new object
  Id = NewAx("AxDemo.TestClass")
  
; set the variable called strVar
  AxStringVar(Id , "strVar""Test")
  
; print the content of the variable
  Print GetAxStringVar(Id, "strVar")
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Test
  

 
Related Info: About the ActiveX library | CreateAx | DeleteAx | GetAxStatus :
 


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