Ticket #767 ( Closed )

Short Description TextLeft comparison problem after a large string assignment
Entered By: jennifer.genzlinger@experian.com When: 2001-05-17 09:05:34 Build: 2.0.11H
Categories Type: Problem   Department: Product   Category: SurferScript Functions
Description
Sorry about being a pest but I tried 2.0.11H last night and 
I found something else that is strange.  The code and trace 
below show that a comparison using textleft returns an 
incorrect value after you make a large assignment of a 
string but the same statement is fine before the assigment.

Thanks, Mark


<TESECTION TestCompare
 when tranpath_1 is "TestCompare">
<TEIF TextLeft("A",1) != TextLeft("A",1)>
  <TESHOW 'TextLeft("A",1) != TextLeft("A",1) -- that is 
not good'>
<TEELSE>
  <TESHOW "Comparison is correct before assignment of large 
string<BR>">
</TEIF>


<TEDECLARE var DummyStr text 30000>
<TESET DummyStr 
= "CNA,CNB,CNC,CND20,CND21,CND22,CND23,CND24,CND25,CND26,CND
27,CND28,CND29,CND30,CND31,CND32,CND33,CND34,CND3511,">
<TESET DummyStr = DummyStr 
+ "CND3519,CND3523,CND3524,CND3531,CND3532,CND3533,CND3534,C
ND3535,CND3536,CND3537,C
 
Append By: WindSurfer  When: 2001-05-17 09:23:35  New Status: Pending Customer
Comment
Oops.

Bad regression in string compares.  Oh well, sometimes the 
first fix isn't the best fix.

Should have a new build around 2pm today that fixes this 
problem...sorry, there is no workaround...
Append By: WindSurfer  When: 2001-05-17 13:29:39  New Status: Pending Customer
Comment
Another critical support issue has delayed the application 
of resources to this problem--can you wait until tomorrow 
morning for a fix?
Append By: jennifer.genzlinger@experian.com  When: 2001-05-17 13:31:47  New Status: Pending IE
Comment
Yes, that's fine.
Append By: WindSurfer  When: 2001-05-18 14:39:16  New Status: Pending Customer
Comment
ftp://www.screensurfer.com/T2_0_11i.zip is now available 
with the string compare regression fixed...