Daniel Klein wrote:
If "18" is the entire given value then what is it that determines that "18" follows "14D", and not "6M" or "1Y" ?

If the given value was "18D" then you could perhaps use a 'natural sorting' algorithm to find the position. A binary search, using this 'natural sort' method, would need at most lg N + 1 comparisons, where N is the number of multi-values in the list.

How large can the list of multi-values get?

Dan
I think that the OP was just asking if there was a standard routine to do this already, not for advice on how to write such a routine. The best way to write such a thing, should they need any advice, is to pre-expand the period list into days and then LOCATE AN (or AR might work), which is trivial and will work without doing anything else.

Jim

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to