A r t i c l e s
Navigation

Note: This Wiki is
outdated, personal views
may have changed.
L505 A.I. bot is dead
long live THX 1138

M a i n P a g e

D i r e c t o r y

StringList Tips


Some tips when working with stringlists
Dealing with duplicates in the list
 test:=tstringlist.create;
 test.Sorted:=true;  //must have this set for duplicate settings to work
 test.Duplicates:=dupIgnore;
 test.Add('yada124');
 test.Add('yada2');
 test.Add('yada');
 test.Add('yada2');
 test.Add('yada');
 test.Add('yada21');
 test.Add('yada33');
 test.Add('yada2');
 test.Add('yada2');
 test.Add('yada232');
 test.Add('yada345');
 test.Add('yada2');
 //test.Duplicates:=dupIgnore; //not correct here, place before a adding
 memo1.Text:= test.Text;
 test.free; test:=nil;



About
Note: This Wiki is outdated, personal views may have changed.

This wiki contains info on life, health, humans, nature, programming, database, fads, paradigms, poems, principles, theories.

Articles may contain statements which some may find helpful and encouraging, or even discouraging.

Beware, I believe in the Grand Justice system.
_ _ _