Win32Lib Feature Request

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

Please include this in Win32Lib (if not already!) and tell me where to put
it in my own copy... I asked nicely! :)

----
function matchItem( integer List_ID, sequence matchTerm )

This function would return a sequence of item numbers -OR- the items
themselves that in whole or part matched the matchTerm. An empty sequence is
return when no matches are found.

Example:

-- myList = {"IADCDAYW.DOT","OTHER.DOT","IADCFOOT.DOT","IADCTURN.DOT"}

junk = matchItem( myList, "IADC" )

junk could now equal { "IADCDAYW.DOT","IADCFOOT.DOT","IADCTURN.DOT"}

-or, if returning values only,

junk could equal { 1, 3, 4 }

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

Search



Quick Links

User menu

Not signed in.

Misc Menu