Solved

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

Posted on 2009-05-05
3
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 107
LAN or WAN ? 11 121
how to change, disabled button color FMX ? 1 65
MS Access from Delphi 31 102
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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