VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Convert 8 bit integer to binary

by Denis Petrusenko (6 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 22nd July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Convert 8 bit integer to binary

API Declarations



'Note: Do not dim variables "AS" anything in ASP =)


Rate Convert 8 bit integer to binary




 Dim s As String, i As Integer

 For i = 0 To 7
  s = (n Mod 2) & s
  t = n / 2
  n = Int(t)
 Next
 
 Bin = s

End Function

Download this snippet    Add to My Saved Code

Convert 8 bit integer to binary Comments

No comments have been posted about Convert 8 bit integer to binary. Why not be the first to post a comment about Convert 8 bit integer to binary.

Post your comment

Subject:
Message:
0/1000 characters