Solved

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

Posted on 2009-05-05
3
153 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 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