Pro dans une calculatrice

isis1be Messages postés 45 Date d'inscription lundi 15 septembre 2003 Statut Membre Dernière intervention 19 avril 2008 - 25 mai 2006 à 13:27
isis1be Messages postés 45 Date d'inscription lundi 15 septembre 2003 Statut Membre Dernière intervention 19 avril 2008 - 25 mai 2006 à 13:27
Salut à tous
Je suis en train de réaliser une calculatrice mais je me demandait comment empécher l'introduction de plusieur virgule  car en ce moment si j'appuie 2 fois sur son bouton j'ai 2 virgule donc comment empècher cela?
Mon code pour le bouton virgule est le suivant:

  if nouveaunombre then begin
      lblnombre.caption:='';
      nouveaunombre:=false;
   end;
   lblnombre.caption:=lblnombre.caption+decimalseparator;
 

Merci à tous
Rejoignez-nous