Ver Mensaje Individual
  #2  
Antiguo 14-09-2005
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Cita:
Empezado por burasu
He investigado en los foros y me imagino que deberá ser algo parecido a definir el DecimalSeparator, pero no se muy bien como debo definirla???
Puedes según la ayuda de Delphi puedes definirla incluso cuando la vayas a utilizar, como en el propio ejemplo de la ayuda de Delphi puede verse:

Cita:
Empezado por Ayuda de Delphi
This example uses a label and a button on a form. When the user clicks the button, the current date displays in the caption of the label. Because some of the date variables are assigned new values, the format of the date in the label changes. For example, if the date is 9/15/94, the date displays as 9-15-1994.
Código Delphi [-]
 procedure TForm1.Button1Click(Sender: TObject);
 begin
   DateSeparator := '-';
   ShortDateFormat := 'm/d/yyyy';
   Label1.Caption := DateToStr(Date);
 end;
Echa un vistazo a la ayuda de Delphi, concretamente, al apartado "Currency and date/time formatting variables".
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita