Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #macro forEach(_V, _L)
  2. for i as uinteger = 0 to _L##.count-1
  3.     dim as typeof(*_L##.item) _V = _L##.item[i]
  4. #endMacro
  5.  
  6. '==========
  7.  
  8. DeclareList(integer)
  9. dim as integerList myList
  10. myList.add(1)
  11. myList.add(3)
  12. myList.add(5)
  13.  
  14. foreach(x, myList)
  15.     print x
  16. next
  17.  
  18. sleep()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement