Ver Mensaje Individual
  #3  
Antiguo 14-07-2003
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Prueba con esto a ver que te parece:

Código:
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
begin
  if (pos('.',(sender as TEdit).Text)=0) then
    begin
      if not (key in ['0'..'9','.',#8]) then key:=#0;
    end
     else if not (key in ['0'..'9',#8]) then key:=#0;
  end;
Un Saludo.
Responder Con Cita