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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Order of dialog buttons?
by
dsiders
[
Today
at 11:16:21 am]
Where do I get IdHTTP, ...
by
Remy Lebeau
[
Today
at 10:35:12 am]
Output directory for exe
by
d2010
[
Today
at 10:22:51 am]
Debugging a new package?
by
Martin_fr
[
Today
at 10:13:05 am]
Programs writing programs...
by
alpine
[
Today
at 10:02:44 am]
Making sense of pparser, ...
by
JernejL
[
Today
at 09:46:54 am]
CPU-View
by
Alexander (Rouse_) Bagel
[
Today
at 09:36:12 am]
TIdSMTP problems
by
Remy Lebeau
[
Today
at 09:30:03 am]
const declaration
by
MarkMLl
[
Today
at 09:17:03 am]
MQTT Client
by
cdbc
[
Today
at 08:54:07 am]
Lazarus Release Candidate...
by
SerJ_Pooh
[
Today
at 08:28:05 am]
TImage colors incorrect
by
Mr.Madguy
[
Today
at 07:50:52 am]
Bug in the formula MATCH
by
veb86
[
Today
at 07:41:04 am]
Form editer strange behav...
by
TheMouseAUS
[
Today
at 06:40:58 am]
Problem in writing formul...
by
veb86
[
Today
at 06:26:52 am]
How to add new methods to...
by
eolandro
[
Today
at 05:10:38 am]
Connection issues, contin...
by
jksmithiii
[
Today
at 04:50:44 am]
Problem with cell comment
by
kjteng
[
Today
at 04:37:08 am]
Nested declarations insid...
by
440bx
[
Today
at 04:15:30 am]
RegEx Patterns: Fractals
by
Boleeman
[
Today
at 01:43:40 am]
H2Pas can't handle EXP CA...
by
TRon
[January 16, 2025, 11:46:56 pm]
Iterator on non-existing ...
by
Warfley
[January 16, 2025, 10:54:14 pm]
[SOLVED]Troubles when con...
by
bytebites
[January 16, 2025, 10:32:35 pm]
[SOLVED] Operators overri...
by
ackarwow
[January 16, 2025, 10:32:18 pm]
The Silver Coder on YouTu...
by
silvercoder70
[January 16, 2025, 10:21:42 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Set of strings... (Read 6715 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: 1930
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: 553
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: 5496
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: 11984
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