rejetto forum

try uniqueStrings(f.accounts[act]) except end;

Mars · 3 · 3374

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
Effectively, having placed 3 glasses in front of my eyes, it does not need a modification there. :D

 Abandoned request ;)