func_data_createlist.rst 656 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. _func_data_createlist:
  2. ==========
  3. CreateList
  4. ==========
  5. CreateList -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. CreateList:TList()
  10. Create a linked list
  11. Parameters
  12. ==========
  13. Return Values
  14. =============
  15. A new linked list object
  16. Examples
  17. ========
  18. .. code-block:: blitzmax
  19. ' createlist.bmx
  20. ' create a list to hold some objects
  21. list:TList=createlist()
  22. ' add some string objects to the list
  23. listaddlast list,"one"
  24. listaddlast list,"two"
  25. listaddlast list,"three"
  26. ' enumerate all the strings in the list
  27. for a$=eachin list
  28. print a$
  29. next
  30. See Also
  31. ========