declare variable in delphi code example

Example 1: variables delphi

Variables

String = text (‘Hello world’)
Integer = Numbers(hole)
Real = Numbers (decimal)
Boolean = TRUE or FALSE
Char = Characters(A B C )
Char variable name := Edit.Text (number to get)
E.G 
Cname := Edit.text(4)
Ansar If (Edit.text = hello) then (Cname = l)

inttostr (>integer<)
Integer To string
Hole numbers to text
Strtoint (>string<)
String to integer
Text to hole numbers
Strtofloat (>string<)
String to Real
Text to Decimal numbers
Floattostr (>real<)
Real To string
Decimal number to Text

Ewrything in >< is plas holders

Example 2: how to add a variable in Delphi

var
(Component Name) : string