Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/07/2006, 21:41
jericosoft
 
Fecha de Ingreso: febrero-2006
Mensajes: 37
Antigüedad: 19 años, 2 meses
Puntos: 0
''''Hola , Tal vez la funcion CDEC te sea de utilidad


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


Saludos
__________________
Jerico