PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Start subscript of the arrays sent to the ActiveX or automation objects
  • Passing the Automation arrays by value
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
AutomationParameter (Function)
In French: AutomationParamètre
Configures the management of accesses to the ActiveX objects and to the Automation objects.
Example
// Defines the start subscript for the Automation arrays
AutomationParameter(apArrayBaseSubscript, 1)
Syntax
<Result> = AutomationParameter(<Parameter to Process> [, <New Value>])
<Result>: Type of the requested parameter
Current value of the parameter. If <New Value> is specified, returns the value before modification.
<Parameter to Process>: Integer constant
This parameter can correspond to:
Versions 15 and later
apBinaryString
New in version 15
apBinaryString
apBinaryString
Retrieves the binary strings of OLE automation.
Possible values for <New Value>: True or False
If the value is set to False (by default), the retrieval stops with the first binary 0.
apArrayBaseSubscriptSpecifies the source subscript for the arrays sent to the ActiveX or Automation objects.
Possible values for <New Value>: 0 or 1
apArrayByValueForces the arrays sent to the ActiveX or Automation objects to be passed by value.
Possible values for <New Value>: True or False.
<New Value>: Optional parameter, type of the parameter to modify
Value that must be given to the parameter.
Remarks

Start subscript of the arrays sent to the ActiveX or automation objects

When using the WLanguage arrays with ActiveX or automation objects, the WLanguage generates Automation arrays whose subscripts start from 0.
Some ActiveX objects or Automation objects require arrays whose subscripts start from 1.
To define the start subscript of the Automation arrays, all you have to do is use the following code line:
AutomationParameter(apArrayBaseSubscript, 1)

Passing the Automation arrays by value

WINDEV passes the WLanguage arrays by address to the ActiveX or automation objects.
Some ActiveX or Automation objects do not support the arrays to be passed by address.
To force the arrays to be passed by value, the array must be enclosed in brackets during each call:
AutomationObject>>Method(5,(MyWLArray))
Instead of:
AutomationObject>>Method(5, MyWLArray)
To force all the arrays to be passed by value, all you have to do is use the following code line:
AutomationParameter(apArrayByValue, True)
Components
WINDEVReports and Queries wd230ole.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment