Normal Topic @UniqueStringArray() (Read 14050 times)
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
@UniqueStringArray()
Feb 4th, 2005 at 2:19am
Print Post Print Post  
I think @UniqueStringArray() has a problem. The documentation says that it should return only one instance of each of the items in the string, but it is repeating all of the items in even numbered positions (i.e. 2nd, 4th, 6th, etc.).

Starting with the example from page 68 of the 1.1 supplement (but changing the text values to numbers for clarity of the pattern that developes), this code:

var MyString as String
MyString = "1;2;3;4;5;6;7;8;9;10;1;2;3;4;5;6;7;8;9;10;1;2;3;4;5;6;7;8;9;10"
WriteLn(@UniqueStringArray(MyString))

produces this result:

2;4;6;8;10;2;4;6;8;10;1;2;3;4;5;6;7;8;9;10

Am I correct or am I missing something?
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: @UniqueStringArray()
Reply #1 - Feb 4th, 2005 at 8:01pm
Print Post Print Post  
Found and fixed. It'll be in the next update.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @UniqueStringArray()
Reply #2 - Feb 4th, 2005 at 8:41pm
Print Post Print Post  
Thanks Mark!
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged