Saludos Cordiales, por favor disculpen si la pregunta es repetitiva, básicamente los números se presentan con el formato 9,999,999.00, necesito que se puedan presentar con el formato 9.999.999,99, es decir, sustituir las comas por los puntos y puntos por comas, deseo saber si hay alguna forma en que pueda presentar los números conforme a la configuración regional que este definida por defecto en l sistema operativo, muchas gracias por su tiempo y por el aporté que puedan hacer.
Kind regards, please excuse me if the question is repetitive, basically the numbers are presented in the 9,999,999.00 format, I need them to be presented in the 9,999,999.99 format, that is, replace the commas with the semicolons, I want to know if there is any way in which I can present the numbers according to the regional configuration that is defined by default in the operating system, thank you very much for your time and for the contribution you can make.
Formato de Números / numbers format
Moderator: Rathinagiri
- jas_sierra
- Posts: 18
- Joined: Sat Aug 23, 2008 2:13 pm
- DBs Used: DBF, Starting In MySQL
- Location: Barinitas - Venezuela
- mustafa
- Posts: 1177
- Joined: Fri Mar 20, 2009 11:38 am
- DBs Used: DBF
- Location: Alicante - Spain
- Contact:
Re: Formato de Números / numbers format
Hola jas_sierra
Si tienes un campo de fichero por ejemplo : -----------> STOCK->PRECIO
se almacena las cantidades numéricas como indicas 9,999,999.00
para poder ver dicha cantidad 9.999.999,99
Solución:
TRAN(STOCK->PRECIO,"@E 999,999.99")
Al Crear Array
Para un TEXTBOX
Si pones FORMAT "E" salen los puntos y comas 9.999.999,99
Saludos/Regars/Salam
Mustafa
Si tienes un campo de fichero por ejemplo : -----------> STOCK->PRECIO
se almacena las cantidades numéricas como indicas 9,999,999.00
para poder ver dicha cantidad 9.999.999,99
Solución:
TRAN(STOCK->PRECIO,"@E 999,999.99")
Al Crear Array
Code: Select all
aGrid := {}
DO WHILE ! STOCK->( Eof())
AADD( aGrid , { STOCK->REF,STOCK->PRODUCTO,STOCK->TIPO,TRAN(STOCK->PRECIO,"@E 999,999.99"),STOCK->CBARRAS ,STOCK->VECTOR } )
STOCK->(DbSkip())
ENDDO
Para un TEXTBOX
Si pones FORMAT "E" salen los puntos y comas 9.999.999,99
Code: Select all
DEFINE TEXTBOX TextBox_01
ROW 454
COL 180
WIDTH 080
HEIGHT 024
FONTNAME "Arial"
FONTSIZE 9
TOOLTIP "Precio"
FONTBOLD .F.
FONTITALIC .F.
FONTUNDERLINE .F.
FONTSTRIKEOUT .F.
ONENTER Nil
HELPID Nil
TABSTOP .T.
VISIBLE .T.
READONLY .F.
RIGHTALIGN .F.
MAXLENGTH 7
BACKCOLOR { 180,200,255 }
FONTCOLOR NIL
INPUTMASK "9999.99"
FORMAT "E" <----------------- Hay que poner "E"
NUMERIC .T.
VALUE 0.00
END TEXTBOX
Saludos/Regars/Salam
Mustafa
- jas_sierra
- Posts: 18
- Joined: Sat Aug 23, 2008 2:13 pm
- DBs Used: DBF, Starting In MySQL
- Location: Barinitas - Venezuela
Re: Formato de Números / numbers format
Muchas Gracias, me ha sido de ayuda, no te habia respondido antes porque no tenia internet, nuevamente muchas gracias.
Salam Aleikum
Salam Aleikum