add_item question

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu