Manage Strings

String declaration

Var chaine : String;

Looking for a substring

position:=pos(substring,string);

example : if substring is ' > ', and string = test > essai then position=4

Text length

longueur:=length(chaine);

Remove right and left spaces

chaine:=trim(chaine);

If chaine ='  test   ' after execution chaine will be 'test' (space removed)

Acces to one character

theFirstCharacter:=chaine[1];