add_item question
- Posted by Aveu Sep 24, 2012
- 1616 views
According to the documentation for the add_item procedure (as well as the append procedure which it relies on) the parameter needle is an object and the parameter haystack is a sequence. Going strictly off the documentation I would expect the following to work but it does not:
sequence theList = {} sequence theWord = "test" add_item(theWord,theList,ADD_SORT_UP)
Even enclosing theWord in curlybraces (which should not be necessary) does not help.
Also, there is absolutely no way to tell if the item was added or ignored by the call itself (meaning this procedure really ought to be a function with a results flag returned) meaning this function could really use some kind of function exit status code mechanism.