CATable::AtomicValue
ADE User Guide > ADE Server Class Reference > CATable
CATable::AtomicValue()
Retrieves the scalar value from a zero-dimensional CATable object. A zero-dimensional table results when a result is not an array, or when you call Slice or Subscript on a one-dimensional array.
Once you have a CATable object, there are three approaches for accessing the individual cells. You can access cells by coordinate using CATable::GetDataByLabels and CATable::GetDataByElements; you can convert to a native array using CATable::GetSafeArray; or you can successively slice the array to get CATable table objects of lower dimension until you eventually bottom out at individual cells. When you use the last method, AtomicValue is used to get the cell value.
Return value
Variant.
Example Usage
The table is set to the contents of the Visual Basic array.
- x = tab.AtomicValue
Enable comment auto-refresher