@CalcMgrGetListItem

English (Español a continuación)

This function returns the element of the list that is indicated in the index.

It consists of two parameters:

@CalcMgrGetListItem (List, Index)

  • List: is the list of elements from which one will be selected.

For example: («4», «7», «9», «11», «13»)

  • Index: indicates the element of the list that is selected:

0: select the first

1: select the second

2: select the third

Let’s see some examples::

  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),0) = 4
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),1) = 7
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),2) = 9
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),3) = 11

This function can be used within a calculation script:

This function assigns the value 4 to the variable «Price» of the market «Valencia».

Español

Esta función devuelve el elemento de la lista que se indica en el índice.

Consta de dos parámetros:

@CalcMgrGetListItem(Lista,Índice)

  • Lista: es la relación de elementos  del que se va a seleccionar uno.

Por ejemplo: («4″,»7″,»9″,»11″,»13»)

  • Índice: indica el elemento de la lista que se selecciona:

0: selecciona el primero

1: selecciona el segundo

2: selecciona el tercero

Veamos algunos ejemplos:

  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),0) = 4
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),1) = 7
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),2) = 9
  • @CalcMgrGetListItem(@LIST(«4″,»7″,»9″,»11″,»13»),3) = 11

Esta función se puede utilizar dentro de un script de cálculo:

Esta función asigna a la variable “Precio” del mercado “Valencia” el valor 4.

Anuncio publicitario