Maptitude GISDK Help |
Fills values into fields in a view|set from vectors.
Added to Version 6.0/2012.
SetDataVectors(string viewset, array a, array options)
Argument |
Contents |
viewset |
The name of the view|set |
a |
An array of two-element arrays; the first element is the name of the field and the second element is the vector |
Options |
Type |
Contents |
Sort Order |
Array |
An array of arrays with two strings, the name of the field and "Ascending" or "Descending," for each field in the sort order |
SetDataVectors() displays a progress bar when setting a large number of records. To add a Cancel button to the progress bar, precede the function call with an "on escape" clause. For more information, see Error Handling.
An example of a Sort Order option: {{"Sort Order",{{Field1,"Ascending"},{Field2,"Descending"}}}}
For more information on vectors, see Vectors.
// First open customer.dbf in the Tutorial folder for exclusive access
// and modify the table to add an Integer field TotalSales of width 12
// and an Integer field DiffSales of width 12
view_name = GetView()
v1 = GetDataVector(view_name+"|", "SALES", )
v2 = GetDataVector(view_name+"|", "LAST_YEAR", )
v3 = v1 + v2
v4 = v1 - v2
SetDataVectors(view_name+"|", {{"TotalSales", v3}, {"DiffSales", v4}}, )
RedrawEditor(view_name)
Error Type |
Meaning |
Error |
There is a value in a vector element that would cause an overflow in the destination table cell |
GISDK Function |
Summary |
Copies an array to a vector |
|
Copies a vector to a new vector |
|
Constructs a cumulative vector in a new vector |
|
Concatenates vectors into one, combined long vector |
|
Creates a vector from a field in a view|set |
|
Creates vectors from fields in a view|set |
|
Fills values into a field in a view|set from a vector |
|
Sorts the elements of a vector in ascending order |
|
Sorts an array of vectors in ascending order, based on the first vector |
|
Transposes an array of arrays, where element b[i][j] = a[j][i] |
|
Creates a vector |
|
Computes a given statistic for the vector |
|
Copies a vector to an array |
©2025 Caliper Corporation | www.caliper.com |