troubleshooting Question

string handling

Avatar of KLOPEKS
KLOPEKS asked on
10 Comments1 Solution218 ViewsLast Modified:
I have a TStringList that contains a list of strings like:


Then i have a procedure that does something for each string in the list with each string in the list,
But i dont need to do it if the string that is indexed contains the the text 'god' or multiple strings i specify,
how do i do that?, I have only programmed in Delphi for 6 months.

  strlst := TStringList.Create;
  For i := 0 To strlst.Count Do if not strlst[i] = 'god';  // ??? just a guess
    bla := ( strlst[i] );
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros