Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with Char type 1

Status
Not open for further replies.

JunglesMcBeef

Programmer
Sep 18, 2003
266
G'day,

I am trying to assign a character from a caption of a label on my form to a variable of type char. I cannot do it directly because they are not the same type... what do I do?
 
like this:

var
c : Char;
begin
c := Label1.Caption[1];
end;

All string types can be used in this way to provide the character at a particular position as a Char type.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top