Solved

find if "R & I" is in a lablel1 caption

Posted on 2009-05-05
3
152 Views
Last Modified: 2012-05-06
I need to check if "R & I" is in a label1. examples below

R & I left Fender
R & I Hood
R & I Right Headlight.

the label1 will have dynamic data but I only need to check if
R & I" is at the first "LEFT" of the label.
0
Comment
Question by:Grant Fullen
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
ThievingSix earned 125 total points
ID: 24310868

If Copy(Label1.Caption,1,5) = 'R & I' Then
begin
  //Do Stuff
end;

Open in new window

0
 

Author Comment

by:Grant Fullen
ID: 24311065
Thanks :)
0
 

Author Closing Comment

by:Grant Fullen
ID: 31578308
Thanks for your help.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question