Difference between revisions of "CATable::AtomicValue"

(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 ...")
 
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[CATable|<< Back to CATable]]
+
[[Category:ADE User Guide]]
 
+
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CATable]]
= [[CATable]]::AtomicValue() =
+
<languages />
 +
<translate>
 +
= [[CATable]]::AtomicValue() = <!--T:1-->
  
 +
<!--T:2-->
 
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 [[CATable::Slice|Slice]] or [[CATable::Subscript|Subscript]] on a one-dimensional array.
 
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 [[CATable::Slice|Slice]] or [[CATable::Subscript|Subscript]] on a one-dimensional array.
  
 +
<!--T:3-->
 
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, [[CATable::AtomicValue|AtomicValue]] is used to get the cell value.
 
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, [[CATable::AtomicValue|AtomicValue]] is used to get the cell value.
  
= Return value =
+
= Return value = <!--T:4-->
  
 +
<!--T:5-->
 
Variant.
 
Variant.
  
= Example Usage =
+
= Example Usage = <!--T:6-->
  
 +
<!--T:7-->
 
The table is set to the contents of the Visual Basic array.
 
The table is set to the contents of the Visual Basic array.
 
<code>
 
<code>
Line 18: Line 24:
 
</code>
 
</code>
  
= Error Codes =
+
= Error Codes = <!--T:8-->
  
  
= See Also =
+
= See Also = <!--T:9-->
  
 +
<!--T:10-->
 
* [[CATable::Subscript]], [[CATable::Slice]]
 
* [[CATable::Subscript]], [[CATable::Slice]]
 
* [[CATable::NumDims]]
 
* [[CATable::NumDims]]
 +
</translate>

Latest revision as of 01:05, 16 June 2015

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

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.