Ver Mensaje Individual
  #9 (permalink)  
Antiguo 01/07/2006, 21:42
jericosoft
 
Fecha de Ingreso: febrero-2006
Mensajes: 37
Antigüedad: 18 años, 3 meses
Puntos: 0
' Hola , tal vez la funcion CDec resuelva tu duda
' Saludos


Private Sub cmdactualizar_Click()
TtxtTotal = Format((CDec(Mid(TxtpeajesCelco, 2, Len(TxtpeajesCelco))) + CDec(Mid(TxtpeajesOtros, 2, Len(TxtpeajesOtros)))), "$ ##,###,##0.00")
End Sub

Private Sub txtpeajescelco_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{tab}"
TxtpeajesCelco.Text = Format(TxtpeajesCelco.Text, "$ #,###,##0.00")
End If
End Sub

Private Sub txtpeajesotros_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{tab}"
TxtpeajesOtros.Text = Format(TxtpeajesOtros.Text, "$ #,###,##0.00")
End If
End Sub
__________________
Jerico