rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Mars on February 02, 2010, 10:45:45 PM

Title: try uniqueStrings(f.accounts[act]) except end;
Post by: Mars on February 02, 2010, 10:45:45 PM
one other forget from rejetto

Quote
  for act:=low(act) to high(act) do
    begin
    try f.accounts[act]:=get('') except end;
    try addUniqueArray(f.accounts[act], get('add ')) except end;
    try removeArray(f.accounts[act], get('remove ')) except end;
    try uniqueStrings(f.accounts[act]) except end;  //add by mars
    end;
  VFSmodified:=TRUE;
  mainfrm.filesBox.repaint();
  end; // setItem
Title: Re: try uniqueStrings(f.accounts[act]) except end;
Post by: rejetto on February 09, 2010, 05:37:51 PM
get() already works on unique strings
addUniqueArray() too
removeArray cannot make duplicates, because it removes.
so, i don't understand why you want to call uniqueStrings(), it's a waste of time.
Title: Re: try uniqueStrings(f.accounts[act]) except end;
Post by: Mars on February 18, 2010, 07:40:51 PM
Effectively, having placed 3 glasses in front of my eyes, it does not need a modification there. :D

 Abandoned request ;)