' When I run the program it returns a 0 in the label ???? Any suggestions
Private Sub btnConverttoEnglish_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConverttoEnglish.Click
Dim oneword As Integer
Dim tensword As Integer
Dim hundredsword As Integer
Dim thousandsword As Integer
Dim EnglishResult As String
Select Case thousandsword
Case 1000
EnglishResult = "one Thousand"
Case 2000
EnglishResult = "two Thousand"
Case 3000
EnglishResult = "three Thousand"
End Select
Select Case hundredsword
Case 100
EnglishResult = "one hundred"
Case 200
EnglishResult = "two hundred"
Case 300
EnglishResult = "three hundred"
Case 400
EnglishResult = "four hundred"
Case 500
EnglishResult = "five hundred"
Case 600
EnglishResult = "six hundred"
Case 700
EnglishResult = "seven hundred"
Case 800
EnglishResult = "eight hundred"
Case 900
EnglishResult = "nine hundred"
End Select
Select Case oneword
Case 1
EnglishResult = "One "
Case 2
EnglishResult = "Two "
Case 3
EnglishResult = "Three "
Case 4
EnglishResult = "Four "
Case 5
EnglishResult = "Five "
Case 6
EnglishResult = "Six "
Case 7
EnglishResult = "Seven "
Case 8
EnglishResult = "Eight "
Case 9
EnglishResult = "Nine "
Case 10
EnglishResult = "Ten "
Case 11
EnglishResult = "Eleven "
Case 12
EnglishResult = "Twelve "
Case 13
EnglishResult = "Thirteen "
Case 14
EnglishResult = "Fourteen "
Case 15
EnglishResult = "Fifteen "
Case 16
EnglishResult = "Sixteen "
Case 17
EnglishResult = "Seventeen "
Case 18
EnglishResult = "Eighteen "
Case 19
EnglishResult = "Nineteen "
End Select
Select Case tensword
Case 90 To 99
EnglishResult = "Ninety "
Case 80 To 89
EnglishResult = "Eighty "
Case 70 To 79
EnglishResult = "Seventy "
Case 60 To 69
EnglishResult = "Sixty "
Case 50 To 59
EnglishResult = "Fifty "
Case 40 To 49
EnglishResult = "Forty "
Case 30 To 39
EnglishResult = "Thirty "
Case 20 To 29
EnglishResult = "Twenty "
End Select
EnglishResult = CStr(thousandsword + hundredsword + tensword + oneword)
txtEnterNumber.Text = CStr(EnglishResult)
LblResult.Text = txtEnterNumber.Text
End Sub