Club Builder - Foros de discusión Club Builder
Foro de C++Builder en español
 
 FAQFAQ   BuscarBuscar   MiembrosMiembros   Grupos de UsuariosGrupos de Usuarios   RegistrarseRegistrarse 
 PerfilPerfil   Entra para ver tus mensajes privadosEntra para ver tus mensajes privados   EntrarEntrar 

separador de decimales

 
Publicar nuevo tema   Responder al tema    Foros de discusión -> Consultas
Ver tema anterior :: Ver tema siguiente  
Autor Mensaje
Mensaje    Asunto: separador de decimales Responder citando

existe alguna funcion a algun metodo para saber cual es el caracter separador de decimales (, o .)
Volver arriba
Mensaje    Asunto: Re: separador de decimales Responder citando

invitado escribió:
existe alguna funcion a algun metodo para saber cual es el caracter separador de decimales (, o .)


Checa en la ayuda.

Bueno al menos yo utilizo Builder C++ 6.0 y esto es lo que dice la ayuda.


    Currency and date/time formatting variables
    Influence the way numeric or date/time values are formatted.

    Unit

    SysUtils.hpp

    The following are a set of variables used to define the format for numeric or date/time strings:

    extern PACKAGE AnsiString CurrencyString;

    extern PACKAGE Byte CurrencyFormat;
    extern PACKAGE Byte NegCurrFormat;
    extern PACKAGE char ThousandSeparator;
    extern PACKAGE char DecimalSeparator;
    extern PACKAGE Byte CurrencyDecimals;
    extern PACKAGE char DateSeparator;
    extern PACKAGE AnsiString ShortDateFormat;
    extern PACKAGE AnsiString LongDateFormat;
    extern PACKAGE char TimeSeparator;
    extern PACKAGE AnsiString TimeAMString;

    extern PACKAGE AnsiString TimePMString;
    extern PACKAGE AnsiString ShortTimeFormat;
    extern PACKAGE AnsiString LongTimeFormat;
    extern PACKAGE AnsiString ShortMonthNames[12];
    extern PACKAGE AnsiString LongMonthNames[12];
    extern PACKAGE AnsiString ShortDayNames[7];
    extern PACKAGE AnsiString LongDayNames[7];
    extern PACKAGE TSysLocale SysLocale;
    extern PACKAGE AnsiString EraNames[7];
    extern PACKAGE int EraYearOffsets[7];

    extern PACKAGE Word TwoDigitYearCenturyWindow;
    extern PACKAGE char ListSeparator;

    Description

    The SysUtils header includes a number of variables that are used by various formatting routines. Values are assigned to these variables to define the formats of numeric and date/time strings. The initial values of these variables are fetched from the system registry using the GetLocaleInfo function in the Win32 API. VCL (non-console) applications automatically update these formatting variables in response to WM_WININICHANGE messages. The Application variable’s UpdateFormatSettings method either allows or disallows changes in system settings. The default is true. Set this property to false to prevent the system settings from changing.

    The description of each variable specifies the LOCALE_XXXX constant used to fetch the value.

    Typed constant Defines

    CurrencyString CurrencyString defines the currency symbol (or characters) used in floating-point to decimal conversions. The initial value is fetched from LOCALE_SCURRENCY.
    CurrencyFormat CurrencyFormat defines the currency symbol placement and separation used in floating-point
    –to–decimal conversions. Possible values are:
    0 = $1
    1 = 1$
    2 = $ 1
    3 = 1 $
    The initial value is fetched from LOCALE_ICURRENCY.
    NegCurrFormat NegCurrFormat defines the currency format used in floating-point to decimal conversions of negative numbers. Possible values are:
    0 = ($1) 4 = (1$) 8 = -1 $ 12 = $ -1
    1 = -$1 5 = -1$ 9 = -$ 1 13 = 1- $
    2 = $-1 6 = 1-$ 10 = 1 $- 14 = ($ 1)
    3 = $1- 7 = 1$- 11 = $ 1- 15 = (1 $)
    The initial value is fetched from LOCALE_INEGCURR.

    ThousandSeparator ThousandSeparator is the character used to separate thousands in numbers with more than three digits to the left of the decimal separator. A value of #0 indicates that no thousand separator character should be output, even if the format string specifies it. The initial value is fetched from LOCALE_STHOUSAND.
    DecimalSeparator DecimalSeparator is the character used to separate the integer part from the fractional part of a number. This variable must have a value other than #0. The initial value is fetched from LOCALE_SDECIMAL.

    CurrencyDecimals CurrencyDecimals is the number of digits to the right of the decimal point in a currency amount. The initial value is fetched from LOCALE_ICURRDIGITS.
    DateSeparator DateSeparator is the character used to separate the year, month, and day parts of a date value. The initial value is fetched from LOCATE_SDATE.
    ShortDateFormat ShortDateFormat is the format string used to convert a date value to a short string suitable for editing. For a complete description of date and time format strings, see Date-Time format strings. The short date format should only use the date separator character and the m, mm, d, dd, yy, and yyyy format specifiers. The initial value is fetched from LOCALE_SSHORTDATE.

    LongDateFormat LongDateFormat is the format string used to convert a date value to an AnsiString suitable for display but not for editing. For a complete description of date and time format strings, see Date-Time format strings. The initial value is fetched from LOCALE_SLONGDATE.
    TimeSeparator TimeSeparator is the character used to separate the hour, minute, and second parts of a time value. The initial value is fetched from LOCALE_STIME.

    TimeAMString TimeAMString is the suffix string used for time values between 00:00 and 11:59 in 12-hour clock format. The initial value is fetched from LOCALE_S1159.
    TimePMString TimePMString is the suffix string used for time values between 12:00 and 23:59 in 12-hour clock format. The initial value is fetched from LOCALE_S2359.
    ShortTimeFormat ShortTimeFormat is the format string used to convert a time value to a short string with only hours and minutes. The default value is computed from LOCALE_ITIME and LOCALE_ITLZERO.

    LongTimeFormat LongTimeFormat is the format string used to convert a time value to an AnsiString with hours, minutes, and seconds. The default value is computed from LOCALE_ITIME and LOCALE_ITLZERO.
    ShortMonthNames ShortMonthNames is the array of strings containing short month names. The mmm format specifier in a format string passed to FormatDateTime causes a short month name to be substituted. The default values are fetched from the LOCALE_SABBREVMONTHNAME system locale entries.

    LongMonthNames LongMonthNames is the array of strings containing long month names. The mmmm format specifier in a format string passed to FormatDateTime causes a long month name to be substituted. The default values are fetched from the LOCALE_SMONTHNAME system locale entries.
    ShortDayNames ShortDayNames is the array of strings containing short day names. The ddd format specifier in a format string passed to FormatDateTime causes a short day name to be substituted. The default values are fetched from the LOCALE_SABBREVDAYNAME system locale entries.

    LongDayNames LongDayNames is the array of strings containing long day names. The dddd format specifier in a format string passed to FormatDateTime causes a long day name to be substituted. The default values are fetched from the LOCALE_SDAYNAME system locale entries.
    SysLocale Indicates the locale used by FormatDateTime to interpret dates.
    EraNames Controls the DateTimeToStr function (for East Asian locales).

    EraYearOffsets Controls the DateTimeToStr function (for East Asian locales).
    TwoDigitYearCenturyWindow Determines what century is added to two-digit years when string dates are converted to numeric dates with StrToDate or StrToDateTime The value of TwoDigitYearCenturyWindow, if it is nonzero, is subtracted from the current year to calculate the floating “pivot” prior to which two-digit years are interpreted as falling in the next century. The default value is 50. You can use TwoDigitYearCenturyWindow to extend the life of legacy applications that are tied to two-digit-year data entry; but the best solution is to require four-digit input for years.

    ListSeparator The character used to separate items in a list. The default value is fetched from LOCALE_SLIST.


Espero que te sirva de algo.

Saludos
_________________
Quien hace una pregunta teme parecer un ignorante durante cinco minutos, quien no pregunta se mantiene ignorante toda la vida.
Volver arriba
Ver perfil de usuario Enviar mensaje privado Enviar email MSN Messenger
Mostrar mensajes de anteriores:   
Cambiar a:  
No puedes publicar temas nuevos en este foro
No puedes responder a temas en este foro
No puedes editar tus mensajes en este foro
No puedes borrar tus mensajes en este foro
No puedes votar en las encuestas de este foro


Hosting WordPress Indedmedia desde 3,99 €
© 2002–2026 Club Builder · Funciona con phpBB.