home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13158 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.4 KB  |  29 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!csugrad.cs.vt.edu!pmiller
  3. From: pmiller@csugrad.cs.vt.edu (Paul Miller)
  4. Subject: TagItem tricks
  5. Message-ID: <9209071929.AA28631@csugrad.cs.vt.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: The Ohio State University Department of Computer and Information Science
  8. Date: Mon, 7 Sep 1992 19:29:49 GMT
  9. Lines: 18
  10.  
  11. What would be the best way to add and remove specific items from a TagList?
  12. I want to take a stack-based taglist, add one or more tag-items and remove
  13. one or more items, then pass it on to a function which accepts a taglist.
  14.  
  15. I tried traversing the list, pulling out the information I needed and 
  16. totaling the other items, then allocating a list with AllocateTagItems(),
  17. then traversing the list again, copying over all the items I wanted. I
  18. added room for the items I wanted to add too. This doesn't appear to work.
  19. Any suggestions?
  20.  
  21. -- 
  22. ****************************************************************************
  23. * Paul Miller                         |Nobody cares about my opinion anyway*
  24. * Certified Amiga Developer           |                                    *
  25. * INTERNET: pmiller@csugrad.cs.vt.edu |    - Have a JOLT and a smile! -    *
  26. * ------------------------------------------------------------------------ *
  27. * "What IS it, man?"                                "Happy Happy, Joy Joy" *
  28. ****************************************************************************
  29.