VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



conversion of positive integer to binary code

by Yamuna and Nandini (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 1st December 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

conversion of positive integer to binary code

API Declarations


Dim c As String


Rate conversion of positive integer to binary code





Private Sub Command1_Click()
a = Text1.Text
c = " "
While a >= 1
b = a Mod 2
a = Int(a / 2)
c = c & Str(b)
Wend
MsgBox StrReverse(c)
End Sub


Download this snippet    Add to My Saved Code

conversion of positive integer to binary code Comments

No comments have been posted about conversion of positive integer to binary code. Why not be the first to post a comment about conversion of positive integer to binary code.

Post your comment

Subject:
Message:
0/1000 characters