re: Strange limitation with StringSegment function. I tried it with Jaws 17.Â
When I entered 4000, it read the remaining large block concatenated from the
last 1000 iterations. When I entered 4001 it found nothing. So Paul, you
are right. Paul B
On Monday, July 25, 2016 10:08 PM, FreeLists Mailing List Manager
<ecartis@xxxxxxxxxxxxx> wrote:
jawsscripts Digest   Mon, 25 Jul 2016   Volume: 04 Issue: 150
In This Issue:
      [jawsscripts] Strange limitation with StringSegment function
----------------------------------------------------------------------
From: "Paul Magill" <magills@xxxxxxxxxxx>
Subject: [jawsscripts] Strange limitation with StringSegment function
Date: Mon, 25 Jul 2016 16:40:05 +1000
Hi All,
I have a script to read a text file into a string variable, and then to be
able to address each line in it, by using the lineFeed character backslashN
as the delimiter in a StringSegment statement.
It works quite well, until segment 3999. Segment 4000 then contains all the
remaining segments, and any request for a segment higher than 4000 returns
only a nul string.
I thought it may have been because of the non standard backslashN delimiter,
so I used the below script to test the StringSegment function, using the
standard LIST_ITEM_SEPARATOR, and the function repeatedly fails at segment
4000, regardless of each segments size, and which delimiter is used.
Has anyone encountered this?Â
Could someone please look at the below test script, and let me know if, when
you enter a line number higher than 3999, whether you get a sensible result,
and if so, what my problem may be?
Note, entering a line number into the input box should read the segment for
that number, and pressing escape escapes the while loop.
Script Test () ; F8
var
int iCount,
string sChoice,
string sText
For iCount = 1 to 5000
let sText = sText + IntToString (iCount) + " ABC DEF GHI JKL MNOP QURS TUV
WXY Z " + LIST_ITEM_SEPARATOR
endFor
WHILE InputBox ("line", "Â ", sChoice)
let iCount = StringToInt (sChoice)
SayString (StringSegment (sText, LIST_ITEM_SEPARATOR, iCount))
EndWhile
EndScript
With appreciation,
Paul from Australia
------------------------------
End of jawsscripts Digest V4 #150
*********************************
__________�
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts