Ticket #765 ( Closed )

Short Description FindText returns -1 when looking for text past 500 characters
Entered By: jennifer.genzlinger@experian.com When: 2001-05-16 09:50:28 Build: 2.0.11G
Categories Type: Problem   Department: Product   Category: SurferScript Functions
There seems to be a problem with FindText when searching a 
string that is longer than 500 bytes.  The code below 
reproduces the error.  It was interesting to note that the 
500 limitation also seemed to apply when I tried to assign 
DummyStr a literal value that was greater than 500 bytes 
and got a compile error.  That is why there are two TESET's 
to assign DummyStr below.

Thanks, Mark

<TEDECLARE var DummyStr text 30000>
<TESET DummyStr 
<TESET DummyStr = DummyStr 
+ "CND3519,CND3523,CND3524,CND3531,CND3532,CND3533,CND3534,C
Append By: WindSurfer  When: 2001-05-16 10:05:15  New Status: Pending Customer
Verified that FindText has this limit--easy fix to move to 
the configured MaximumStringSize.

Have also found where the expression parser has the same 
limit...also have bumped this to MaximumStringSize.

Fix to these both will be available later today.

Note that you should be able to use the data="" attribute 
in the variable definition to fully initialize, also the 
use of a variable named constant.DummyStr would work very 
well--if you have multiple cases, then maybe multiple 
constant. variables would the work well.

A mix would be to have a variable that is session-based be 
a holder, and then a number of constant. variables provide 
the contents of that variable in a TESet.
Append By: jennifer.genzlinger@experian.com  When: 2001-05-16 10:24:01  New Status: Pending IE
That's great about the fix!  Thanks for the other info too 
although the string that caused me to discover the 
limitation is dynamically generated and I just was making a 
trivial example to reproduce the error so I shouldn't need 
to use the constants or the initialization but I will keep 
your recommendations in mind for the future.

Thanks, Mark