Ver Mensaje Individual
  #2  
Antiguo 29-03-2004
Avatar de Nuria
Nuria Nuria is offline
Miembro
 
Registrado: may 2003
Posts: 531
Reputación: 21
Nuria Va por buen camino
Hola!

Te podías crear una función que cuando pulsaras una tecla de un campo numérico la llamaras:

Código:
function fSepDecimal(tecla: char) : char;
begin
  if DECIMALSEPARATOR = ',' then begin
     if tecla = '.' then Result:= ','
     else Result := tecla;
  end
  else begin
     if tecla = ',' then Result:= '.'
     else Result := tecla;
  end;
end;
La llamarías de esta forma:
Código:
key := fSepDecimal(key);
Espero que te sirva.

Saludos!
Responder Con Cita