Difference between revisions of "CATable::PutSafeArray"
(created) |
|||
Line 1: | Line 1: | ||
− | [[ | + | [[Category:ADE User Guide]] |
− | + | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CATable]] | |
+ | <languages /> | ||
+ | <translate> | ||
= [[CATable]]::PutSafeArray(theArray) = | = [[CATable]]::PutSafeArray(theArray) = | ||
Line 34: | Line 36: | ||
* [[CATable::SetIndexOrder]] | * [[CATable::SetIndexOrder]] | ||
* [[CATable::Update]] | * [[CATable::Update]] | ||
+ | </translate> |
Revision as of 01:11, 16 June 2015
ADE User Guide > ADE Server Class Reference > CATable
CATable::PutSafeArray(theArray)
Replaces the contents of the current table with the contents of an array having the same dimensions.
When you are setting an array with 2 or more dimensions, you should call SetIndexOrder first to ensure the order of dimensions are in correspondence.
After you have called PutSafeArray, you must also call CATable::Update to make the table data take effect in the model.
Return value
Boolean (success or failure)
Example Usage
The table is set to the contents of the Visual Basic array.
- Dim Var As Object
- Dim TheArray
- TheArray = Var.GetSafeArray
- Var.PutSafeArray (TheArray)
Error Codes
- 24 – “Subscripts must be an array of variants”
- 50 – “Safe-array has incorrect size or number of dimensions”
See Also
Comments
Enable comment auto-refresher