Advertisement
Guest User

Untitled

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