Lingo Dictionary > G-K > getPropAt()

 

getPropAt()

Syntax

list.getPropAt(index)
getPropAt(list, index)

Description

Property list function; for property lists only, identifies the property name associated with the position specified by index in the property list specified by list. If the specified item isn't in the list, or if you use getPropAt() with a linear list, a script error occurs.

Example

This statement displays the second property in the given list:

put Answers.getPropAt(2)
-- #b

The result is 20, which is the value associated with #b.