Thanks Mike- That helps me understand the inner workings much better.
Appreciate you looking at the code, as it is just one step away from working 
:-).

--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> gmorlosky,
> 
> If noone else replies sooner, I'll have a look over the weekend at the sample 
> I gave you earlier and debug it as necessary. I won't have access to it 
> before then.
> 
> As for your questions below, the value returned from StrFind is the index at 
> which your substring is first discovered. The index is one based, meaning 
> that the first character is at index 1, the second character at index 2, etc. 
> It does not matter whether the string contains letters, numbers or both, they 
> are all treated generically as characters.
> 
> Given the string str = "1234abc4", StrFind(str, "4") would return 4 since the 
> first 4 is discovered at index 4. StrFind(str, "abc") would return 5, etc.
> 
> Similarly, with StrExtract everything is generically treated as characters. 
> To pull any given token out of the list, you must pass the index of the token 
> that you want. A token is any number of characters appearing between two 
> commas (or from the start of the string to the first comma or from the last 
> comma to the end of the string). The index is zero based, meaning that the 
> first token is at index 0, the second token at index 1, etc.
> 
> e.g.
> str = "9,10,11" 
> StrExtract(str, 1) would give "10"
> 
> Mike
>  
> --- In [email protected], "gmorlosky" <gmorlosky@> wrote:
> >
> > What exactly does "character index" mean ?
> > 
> > StrFind()
> > Returns 0 if not found, otherwise returns  (one-based) of first occurrence.
> > 
> > If I wanted to pull any particular number from a comma delimited string of 
> > (see below), how would I extract that ? we have StrExtract, but what about 
> > NumExtract ?
> > 
> > ,0,
> > 1,
> > 2,
> > 3,
> > 4,
> >
>


Reply via email to