up Inquisit Language Reference

clearItems function

Removes all of the element's items.

Member of

<item><list><html><picture><port><sound><text><video><xid>

Syntax

object.name.clearItems()

Return Type

none

Parameters

None.

Remarks

The clearItems function removes all items from an element's list of items. When called on a list element, for example, the function removes all items from the selection pool. When called from a stimulus element, all stimulus items are removed.

Examples

The following clears all of the items from a text stimulus:

<trial myTrial>
/ onTrialEnd= {text.myText.clearItems();}
</trial>

The following clears all of the items from the selection pool of a list:

<trial myTrial>
/ onTrialEnd= {list.mylist.clearItems();}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.