can anybody explain me.this code.Kindly let me know any idea.any help would be highly appreciated.
Code:
Function GetTens(TensText)
Dim Result As String
Result = "" ' Null out the temporary function value.
If Val(Left(TensText, 1)) = 1 Then ' If value between 10-19...
Select Case Val(TensText)
Case 10: Result = " and Ten"
Case 11: Result = " and Eleven"
Case 12: Result = " and Twelve"
Case 13: Result = " and Thirteen"
Case 14: Result = " and Fourteen"
Case 15: Result = " and Fifteen"
Case 16: Result = " and Sixteen"
Case 17: Result = " and Seventeen"
Case 18: Result = " and Eighteen"
Case 19: Result = " and Nineteen"
Case Else
End Select