![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/11/2006, 06:49
|
| | Fecha de Ingreso: mayo-2006
Mensajes: 178
Antigüedad: 18 años, 8 meses Puntos: 3 | |
Yo lohago independientemente de como viene el dato (bien con punto bien con coma:
If InStr(TextBox1.Text, ",") > 0 Then 'cambiar coma por punto
TextBox1.Text = Replace(TextBox1.Text, ",", ".")
End If
.............
cm.Parameters.Add(New SqlParameter("@NHoras", SqlDbType.Float, 8)).Value = Val(TextBox1.Text) |