Ho creato un semplice programma che compara due textbox il cui risultato mi da se la text1 è maggiore minore o uguale alla text2.
Questo è il codice:
Private Sub Command1_Click()
If Text1.Text > Text2.Text Then
MsgBox Text1.Text & " maggiore " & Text2.Text
ElseIf Text1.Text < Text2.Text Then
MsgBox Text1.Text & " minore " & Text2.Text
ElseIf Text1.Text = Text2.Text Then
MsgBox Text1.Text & " uguale " & Text2.Text
End If
End Sub
Ma se sul text1 metto ad esempio “8,868” e sulla text2 metto “10” il risultato mi dice che la 8,868 maggiore di 10. Come mai e come posso risolverlo ?..........