DIM hByteArray AS Byte[]
DIM anInteger AS Integer

FOR EACH anInteger IN hByteArray
  ...
NEXT

Перечисляет каждый элемент, сохраненный в массиве.