CATable::AtomicValue

Revision as of 18:12, 2 January 2015 by Lchrisman (talk | contribs) (Created page with "<< Back to CATable = CATable::AtomicValue() = Retrieves the scalar value from a zero-dimensional CATable object. A zero-dimensional table results when a ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<< Back to 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

Error Codes

See Also

Comments


You are not allowed to post comments.