[jawsscripts] Re: String Segment Count

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: "JAWSScripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 6 Jul 2010 08:58:29 +0100

Mike,

  Geoff made one incorrect statement about the delimiters being a string and
not a set of characters.  In every case, the delimiter for the StringSegment
functions is a single character, even when you specify more than one, as you
can easily see by setting up a test string and testing the case Geoff gave.
In that case, any vertical bar AND any space in the test string will act as
a segment delimiter, whether they are adjacent or not.

  I haven't read your own reply to Geoff yet.

  hth

Martin


----- Original Message ----- 
From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, July 06, 2010 5:12 AM
Subject: [jawsscripts] Re: String Segment Count


Hi Mike.
well, I stand to be corrected, but my understanding was that you just shoved
all of them next to each other inside quotation marks as the second param of
the function?
i.e.

StringSegmentCount (MyString, "| ")


the multiple delimiters in this case would be vertical bar followed by a
space, in sequence.
thus a vertical bar with no space following it, would not be considered
legal for the above code?

BTW, you can also use, as can be very handy in some situations, and end of
line character of "\n" as a delimiter as well.

hth..
----- Original Message ----- 
From: "Mike" <mike_sharp@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, July 06, 2010 9:10 AM
Subject: [jawsscripts] String Segment Count


> Hi All,
>
> I am a bit unsure on how to specify more the one delimiter in the
> stringsegmentcount function, can someone let me know how it is done?
>
> Regards,
>
> Mike
>
> __________�
>
> 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

__________�

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

Other related posts: