Vizard 8 » Command Index » Vizard objects » cycle » <cycle>.next
8.1

<cycle>.next

Return the next value in the sequence

<cycle>.next()  

Remarks

Return the next value in the sequence.

Return Value

Next value in the sequnece.

Example

names = viz.cycle( ['Larry', 'Moe', 'Curly'] )
def printNextName():
    print(names.next())
vizact.onkeydown('a', printNextName )

See also

<cycle>.inc
<cycle>.peek
<cycle>.prev