Forum > General
Set of strings...
(1/1)
captian jaster:
is there a certain way of making a set of ANIStrings (eg '.jpg','.JPG') im doing my project again
theo:
Fill a TStringList, then use IndexOf to see whether the item exists.
mas steindorff:
here is a delph help link to tstringlist and how to use and some of what they can do.
http://www.delphibasics.co.uk/RTL.asp?Name=TStringList
Bart:
What are you trying to accomplish?
If you want to know if a filename has an extension like in your example "set", then take a look at MatchesMaskList() in unit masks.
Bart
marcov:
--- Quote from: theo on June 27, 2010, 11:21:02 am ---Fill a TStringList, then use IndexOf to see whether the item exists.
--- End quote ---
Don't forget to set the sorted attribute, it will speedup indexof
Navigation
[0] Message Index