Difference between revisions of "IndexesOf"
(«exclude») |
(typo on parameter name «except») |
||
Line 18: | Line 18: | ||
:<code>IndexesOf(Car_prices) → [Car_types, Year]</code> | :<code>IndexesOf(Car_prices) → [Car_types, Year]</code> | ||
− | :<code>IndexesOf(Car_prices, | + | :<code>IndexesOf(Car_prices, except: Car_types) → [Year]</code> |
== History == | == History == | ||
− | * The | + | * The «except» parameter was introduced in [[Analytica 5.2]]. |
== See Also == | == See Also == |
Revision as of 01:11, 21 June 2018
IndexesOf(a, except...)
Returns a list of handles to the indexes of array «a». It is different from IndexNames(a), which returns the identifiers of the indexes as text values instead of handles.
If «X» has an implicit index (an index without a name), the first element of the output list is null, rather than a handle.
If the array has more than one local index with the same identifier, you can use IndexesOf(a) to identify each index safely because each handle unambiguously refers to the corresponding index, where IndexNames(a) would return the identifiers as identical and therefore ambiguous text values.
The optional «except» parameter is new to Analytica 5.2, and excludes any of the indexes that are listed.
- IndexesOf(a: Array)
Example
IndexesOf(Car_prices) → [Car_types, Year]
IndexesOf(Car_prices, except: Car_types) → [Year]
History
- The «except» parameter was introduced in Analytica 5.2.
See Also
Comments
Enable comment auto-refresher