Prendre les deux derniers caractères d'une string...

ELECTRORESiSTiK Messages postés 25 Date d'inscription dimanche 6 janvier 2002 Statut Membre Dernière intervention 11 août 2002 - 9 janv. 2002 à 19:20
DelphiCool Messages postés 455 Date d'inscription mardi 24 juillet 2001 Statut Membre Dernière intervention 10 mars 2009 - 10 janv. 2002 à 08:16
Salut,
Pourriez-vous m'expliquer comment prendre les deux dernier caractères d'une string ?
Merci d'avance!
Bonne Soirée

1 réponse

DelphiCool Messages postés 455 Date d'inscription mardi 24 juillet 2001 Statut Membre Dernière intervention 10 mars 2009
10 janv. 2002 à 08:16
var
s : string;
a, b char;

begin
s := 'www.progzed.com';
a := s[length(s)];
b := s[length(s)-1];
end;

http://www.progzed.com/~delphicool

http://forumdelphi.fr.st MonForum (http://forumdelphi.fr.st)
0
Rejoignez-nous