gungadout
12-10-2010, 08:04
Hi Folks,
My eyeballs must not be working properly.
I cannot find in the documentation a function to return the index of a particular string within a delimited string.
The syntax would be something like Index = LOCATE$(SearchString, MainString, StringDelimiter, StartIndex), where: StartIndex is the nth delimited area to start looking in; Index = the first delimited area found containing the SearchString, the whole SearchString and nothing but the SearchString (to borrow from legalese). The Index of the position in front of the first occurrence of the StringDelimiter = 1. If the SearchString is not found, the value of Index would be zero.
My wife always accuses me of suffering from domestic blindness (not being able to see things right in front of my face). Maybe she's right.
I've found things like GRAB$, PARSE$, PARSESET$ and PATCH$, but they naturally assume that you know the index position you want.
I need to locate a key string in one delimited array, then pull data out of other delimited arrays using that index position.
I can code around it, but if there is a function that I have overlooked, that would be better.
What did I miss?
Thanks,
Peter H. (gungadout)
My eyeballs must not be working properly.
I cannot find in the documentation a function to return the index of a particular string within a delimited string.
The syntax would be something like Index = LOCATE$(SearchString, MainString, StringDelimiter, StartIndex), where: StartIndex is the nth delimited area to start looking in; Index = the first delimited area found containing the SearchString, the whole SearchString and nothing but the SearchString (to borrow from legalese). The Index of the position in front of the first occurrence of the StringDelimiter = 1. If the SearchString is not found, the value of Index would be zero.
My wife always accuses me of suffering from domestic blindness (not being able to see things right in front of my face). Maybe she's right.
I've found things like GRAB$, PARSE$, PARSESET$ and PATCH$, but they naturally assume that you know the index position you want.
I need to locate a key string in one delimited array, then pull data out of other delimited arrays using that index position.
I can code around it, but if there is a function that I have overlooked, that would be better.
What did I miss?
Thanks,
Peter H. (gungadout)