Logo

Programming-Idioms

History of Idiom 7 > diff from v127 to v128

Edit summary for version 128 by NotMakingAUsername:
New VB implementation by user [NotMakingAUsername]

Version 127

2022-02-14, 07:39:04

Version 128

2022-02-19, 01:37:10

Idiom #7 Iterate over list indexes and values

Print each index i with its value x from an array-like collection items

Idiom #7 Iterate over list indexes and values

Print each index i with its value x from an array-like collection items

Variables
i,x,items
Variables
i,x,items
Extra Keywords
indices traverse traversal
Extra Keywords
indices traverse traversal
Code
For i = LBound(items) To UBound(items)
    x = items(i)
    Debug.Print i & ": " & x
Next