createlist.bmx 267 B

1234567891011121314151617
  1. ' createlist.bmx
  2. ' create a list to hold some objects
  3. list:TList=createlist()
  4. ' add some string objects to the list
  5. listaddlast list,"one"
  6. listaddlast list,"two"
  7. listaddlast list,"three"
  8. ' enumerate all the strings in the list
  9. for a$=eachin list
  10. print a$
  11. next