AxFloatVar
AxFloatVar Id, VarName$, Value#
 
Parameters:

    Id = Id of an object
    VarName$ = Variable name
    Value# = Float value
Returns: NONE
 

     AxFloatVar sets the value of an ActiveX object's float (single) variable.





Mini Tutorial:


  
; Include ActiveX Library
  #Include "ActiveX"
  
; Register the AxDemo Dll
  RegisterAxDll("AxDemo.Dll")
  
; create a new object
  Id = NewAx("AxDemo.TestClass")
  
; set the variable called fltVar
  AxFloatVar(Id, "fltVar"2.25)
  
; print the content of the variable
  Print GetAxFloatVar(Id, "fltVar")
  
; 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.

  
  2.25
  

 
Related Info: AxIntVar | AxStringVar :
 


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