home *** CD-ROM | disk | FTP | other *** search
- /*
- Item To Front
- Puts an item to the front of a list
- */
-
- parse arg item, list
-
-
- if item = '' then return(list)
-
- stringpos = pos(item, list)
- if stringpos ~= 0 then
- do
- list = delstr(list, stringpos, length(item) + 1)
- list = item || '0a'x || list
- end
- return(list)
-