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

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.
Grant FullenAsked:
Who is Participating?
 
ThievingSixConnect With a Mentor Commented:

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

Open in new window

0
 
Grant FullenAuthor Commented:
Thanks :)
0
 
Grant FullenAuthor Commented:
Thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.