Difference between revisions of "IndexValue"

 
Line 1: Line 1:
 +
[[What's new in Analytica 4.0?]] >
 +
 +
(new to Analyica 4.0, requires build 4.0.0.33 or later)
 +
 
= IndexValue(I) =
 
= IndexValue(I) =
  

Revision as of 22:18, 13 February 2007

What's new in Analytica 4.0? >

(new to Analyica 4.0, requires build 4.0.0.33 or later)

IndexValue(I)

Returns the index value for the given variable or index.

In Analytica, a variable may have both an index value and a result value. This may occur in a self-indexed array, in a variable or index defined as a list of identifiers or list of expressions, or in a Choice list with a self-domain, to list a few examples.

The IndexValue function gives you access to the index value from a value context.

Details

The IndexValue function, if it weren't built-in, could easily be defined within Analytica 4.0 as:

Function IndexValue( I : IndexType ) := I

This definition, however, requires Analytica 4.0 or later.

Examples

 Index L := [I,J,K,"value"]
 Index rows := 1..Size(A)
 Variable Flat_A := MdArrayToTable( A, rows, IndexValue(L) )

See Also

Comments


You are not allowed to post comments.