Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetVarSubArray - method of object PmData

Description:
The assignment of values from the values array created by the GetVarArray or GetVarSubArray method to the selected variables on the Data page of this object.
Syntax:
SetVarSubArray(vFrom As Variant, vTo As Variant, array As Array) As Boolean
Calling:
oData.SetVarSubArray from, to, array
Parameters:
vFrom(Variant) Index (or name) of the first variable (zero-based index) to which the first value of the array has to be assigned
vTo(Variant) Index (or name) of the last variable (zero-based index) to which the last value of the array has to be assigned
array(Array) One-dimensional values array whose values have to be assigned to the selected variables
Return Values:
true - on successful assignment of values
false - otherwise
Note:

Values will be assigned to variables with the index in the range of the vFrom and vTo (including) parameters.

The SetVarArray method serves to the assignment of values from the array to all variables.

Example:
Dim a
a = Array(23,45,56)
oData.SetVarSubArray 1, 3, a
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice