Ver Mensaje Individual
  #4  
Antiguo 22-10-2010
Avatar de BlueSteel
[BlueSteel] BlueSteel is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Concepción - Chile
Posts: 2.310
Reputación: 26
BlueSteel Va por buen camino
en parte te puede servir esto...

Código Delphi [-]
If Key = #13 Then vDes.SetFocus;
If Key='.' Then Key:=',';
If Pos(',',vCtd.Text)=0 Then
        If not (Key in ['0'..'9',',',#8]) Then Key:=#0
          else Exit
  else
       If not (Key in ['0'..'9',#8]) Then Key:=#0;

hay que ponerlo en el evento onKeyPress del Edit

Salu2
__________________
BlueSteel
Responder Con Cita