• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

SOFTWARE DESIGN major assinment (1 Viewer)

moe money

New Member
Joined
Feb 28, 2007
Messages
2
Gender
Male
HSC
2007
does any1 have visual basic codes for changing numbers to binary then adding the binary then turning it back ill do anyfing HELP xxxxxxxx
 

leatham

New Member
Joined
Mar 23, 2006
Messages
6
Gender
Male
HSC
2007
I'd rather not post a snippet of the code but I'll have to, you can use it as long as you promise me you'll study how it works and not just copy + paste, as that would be a cheap way out of it..... on the other hand heres the codles:

Public Function CBin(ByVal Nr As Long, Optional Precision As Integer = 8) As String
Do Until Nr = 0
CBin = CStr((Nr Mod 2)) + CBin
Nr = Nr \ 2
Loop
CBin = Format(Val(CBin), String(Precision, "0"))
End Function

Private Sub Form_Load()
MsgBox CBin(88)
End Sub
 

!R3VOLUTION!

New Member
Joined
Feb 14, 2007
Messages
11
Gender
Male
HSC
2007
Mohiymen Stop Using Bored Of Studies Lol

See U @ Skool And Good Luck Wif The Assignment Lol!!!!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top