[jawsscripts] Re: StringContains. can an Ending position be determined?

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 19 Jul 2010 13:20:19 -0500

If pos = stringContains(s, someString) and lSomeString = 
stringLength(someString), SomeString's ending position in S will be pos + 
lSomeString - 1.


On Tue, 20 Jul 2010 03:29:52 +1000, Geoff Chapman wrote:
> Mighty Scripters.
> In wanting to first isolate and reprocess the textual, and also numeric 
> Caller ID Numeric components, of a mixed line containing firstly a 3 digit 
> number, that's ok as this is constant, then a couple of words that I need to 
> isolate, , then sometimes, not always though, a bunch of numbers as a Caller 
> ID at the end of these lines, with nothing but what jaws speaks as, Blank, or 
> character 0 if you queery it, between these 3 separate components as known 
> delimiters,
> well, A much more advanced scripter friend of mine pulled me out of trouble 
> bybuilding a little function of his own which annilizes whether a given 
> string contains numeric components or not. And I hope to test this tomorrow, 
> now that I've finally formed up all the processing around text it needs to 
> look for in the Text String status component section, of these lines.
> etc.
> 
> However, it occurred to me, to wanna ask, well,
> you know how the StringContains BuiltIn,
> returns the starting position in a given string, where the second parameter 
> string your searching for, starts to match,
> well, I wondered, whether any fancy dude up here, may've ever divined some 
> magic code/way, of, say, building something which could return the number of 
> the ending position of such a string as well?
> 
> Would not others find this a handy feature to have sometimes?
> 
> I just wondered eh.
> 
> Thanks for any thoughts.
> 
> geoff c.
> 
> 
> 
> __________�
> 
> View the list's information and change your settings at 
> http://www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: