list class : SetAt(int,class) method

Description

Sets the element at the specified index.

Syntax

listInstance.SetAt(int index, someClass element)

Arguments

ClassNameDescription
intindexIndex to set.
someClasselementElement to be set.

Return value

None

Sample code

//anyList is a instance of list{string} type.

anyList.SetAt(5, "ww");

Notes

The index is 0-based.

Links for reference

Copyright © Rice All rights reserved.