Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Set of strings...
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How to load read large CS...
by
Nimbus
[
Today
at 08:29:24 pm]
Need help converting a C+...
by
MathMan
[
Today
at 07:05:58 pm]
TMSSQLConnection in MacOS...
by
zeljko
[
Today
at 06:48:04 pm]
Cannot find Online Packag...
by
Flea
[
Today
at 06:39:55 pm]
Lazarus IDE problem?
by
BrunoK
[
Today
at 05:52:48 pm]
Possible LMAX Disruptor (...
by
Martin_fr
[
Today
at 05:07:21 pm]
Recomendations for conver...
by
gidesa
[
Today
at 04:40:32 pm]
Qt6 / X11: problem with G...
by
zeljko
[
Today
at 04:18:33 pm]
How to use nested classes
by
440bx
[
Today
at 01:59:08 pm]
Qt6 / X11 session: strang...
by
AlexTP
[
Today
at 01:04:31 pm]
TShellListView empty spac...
by
jamie
[
Today
at 12:20:14 pm]
Tool to create Windos set...
by
marcov
[
Today
at 11:35:30 am]
IDE Watch Window colors (...
by
Martin_fr
[
Today
at 11:23:38 am]
Anchoring controls with d...
by
Martin_fr
[
Today
at 11:20:42 am]
Why this code is working ...
by
Martin_fr
[
Today
at 11:07:08 am]
BalloonHint in Trayicons ...
by
CM630
[
Today
at 10:59:42 am]
[Solved]Lazreport Labels
by
Petrus Vorster
[
Today
at 09:42:38 am]
Assembler error ‘illegal ...
by
yurets_z
[
Today
at 08:51:49 am]
MouseAndKeyInput ---> To ...
by
n7800
[
Today
at 08:43:08 am]
Hints in TTrayIcon
by
CM630
[
Today
at 08:04:34 am]
Define background color f...
by
Antek
[
Today
at 07:46:15 am]
MainMenu captions "hidden...
by
zeljko
[
Today
at 07:18:39 am]
Strings and special chara...
by
PeterX
[December 03, 2025, 10:27:54 pm]
Convert string with Key-V...
by
Bart
[December 03, 2025, 10:16:17 pm]
Can't load Sqlite client ...
by
pmralbuquerque
[December 03, 2025, 05:56:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Set of strings... (Read 6987 times)
captian jaster
Guest
Set of strings...
«
on:
June 27, 2010, 10:47:49 am »
is there a certain way of making a set of ANIStrings (eg '.jpg','.JPG') im doing my project again
Logged
theo
Global Moderator
Hero Member
Posts: 1933
Re: Set of strings...
«
Reply #1 on:
June 27, 2010, 11:21:02 am »
Fill a TStringList, then use IndexOf to see whether the item exists.
Logged
mas steindorff
Hero Member
Posts: 560
Re: Set of strings...
«
Reply #2 on:
June 28, 2010, 03:19:40 pm »
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
Logged
windows 10 &11, Ubuntu 21+ IDE 3.4 general releases
Bart
Hero Member
Posts: 5640
Re: Set of strings...
«
Reply #3 on:
June 29, 2010, 02:59:29 am »
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
Logged
marcov
Administrator
Hero Member
Posts: 12562
FPC developer.
Re: Set of strings...
«
Reply #4 on:
July 05, 2010, 11:22:40 am »
Quote from: theo on June 27, 2010, 11:21:02 am
Fill a TStringList, then use IndexOf to see whether the item exists.
Don't forget to set the sorted attribute, it will speedup indexof
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Set of strings...
TinyPortal
© 2005-2018