- Private Sub cmdconvert_Click()
- Dim euro, francs As Integer
-
- If (txteuro.Text <> "") Then
- euro = txteuro.Text
- francs = 0
- Else
- euro = 0
- francs = txtfrancs.Text
- End If
-
- If (euro <> 0) Then
- lblres1 = euro
- lblres2 = euro * 6.55957
- Else
- lblres1 = francs / 6.55957
- lblres2 = francs
- End If
- cmdnew.SetFocus
-
- End Sub
- Private Sub cmdfin_Click()
- End
- End Sub
- Private Sub cmdnew_Click()
- If (txteuro.Text <> "") Then
- txteuro.SetFocus
- txteuro.SelStart = 0
- txteuro.SelLength = Len(txteuro.Text)
- Else
- txtfrancs.SetFocus
- txtfrancs.SelStart = 0
- txtfrancs.SelLength = Len(txtfrancs.Text)
- End If
- lblres1 = ""
- lblres2 = ""
- End Sub
-
Private Sub cmdconvert_Click()
Dim euro, francs As Integer
If (txteuro.Text <> "") Then
euro = txteuro.Text
francs = 0
Else
euro = 0
francs = txtfrancs.Text
End If
If (euro <> 0) Then
lblres1 = euro
lblres2 = euro * 6.55957
Else
lblres1 = francs / 6.55957
lblres2 = francs
End If
cmdnew.SetFocus
End Sub
Private Sub cmdfin_Click()
End
End Sub
Private Sub cmdnew_Click()
If (txteuro.Text <> "") Then
txteuro.SetFocus
txteuro.SelStart = 0
txteuro.SelLength = Len(txteuro.Text)
Else
txtfrancs.SetFocus
txtfrancs.SelStart = 0
txtfrancs.SelLength = Len(txtfrancs.Text)
End If
lblres1 = ""
lblres2 = ""
End Sub