Ver Mensaje Individual
  #8 (permalink)  
Antiguo 27/12/2006, 15:53
bolis
 
Fecha de Ingreso: diciembre-2006
Mensajes: 1
Antigüedad: 17 años, 4 meses
Puntos: 0
String Format

HOLA A TODOS!!!:
FHER:

quiero pedir ayuda sobre string format, estoy trabajando con unos textos numericos en vbnet, y tengo el texto de la siguiente forma:

txtValor.Text = 150038
con string format lo pongo de esta forma:
txtValor.Text = String.Format("{0:0,0.00}",txtValor.Text )

150,038.00, osea con comas de miles y dos decimales, ahora, mi problema es al momento de guardar necesito que el texto regrese a su modo original 150038, como puedo hacer esto???

alguien me puede ayudar? o sabe como hacerlo ? gracias

Cita:
Iniciado por Fher Ver Mensaje
ok hice este ejemplo y ya estoy encontrado la falla es que mi sistema es windows 2000 pro en español jajajaja...

y haciendo este ejemplo

<script language="C#" runat="server">
void Page_Load(Object sender, EventArgs e)
{
double price = 4.56;
DateTime rightNow = DateTime.Now;
int bigNumber = Int32.MaxValue;


lblPrice.Text = String.Format("{0:c}", price);
lblTime.Text = String.Format("{0:T}", rightNow);
lblDate.Text = String.Format("{0:d}", rightNow);
lblBigInt.Text = String.Format("{0:#,###}", bigNumber);
}
</script>

<html>
<body>

The price is: <asp:label runat="server" id="lblPrice" />
<p>
The time is: <asp:label runat="server" id="lblTime" />
<p>
The date is: <asp:label runat="server" id="lblDate" />
<p>
The biggest 32-bit integer is
<asp:label id="lblBigInt" runat="server" />
</body>
</html>
me da esto..

The price is: 5 pta
The time is: 19:32:23

The date is: 25/10/2004

The biggest 32-bit integer is 2.147.483.647

ahora ya vi mi configuracion en y todo lo tengo para estados unidos, pero aun asi tengo esto problema me paree que hay una clase llamada system.global que forsas al sistema a poner en cierto lenguaje
no??