Guest User

Untitled

a guest
Oct 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Dim num As Integer
  2. Dim remainder As Integer
  3. Dim outString As String
  4. Dim letrs As String = "0123456789ABCDEF"
  5. 'we use these to convert the remainder to a single character
  6. For base As Integer = 16 To 16
  7. num = CInt(txtIn.Text)
  8. outString = " "
  9. Do While (num > 0)
  10. remainder = num Mod base
  11. num = num base
  12. outString = CStr(remainder) & outString
  13. Loop
  14. lstOutput.Items.Add(outString)
  15. Next
Add Comment
Please, Sign In to add comment