Hi Ev1~
here is my sample code for binary code somehow when i try to click the answer it only display 00000 when i press no like 98 or any other no..
Thanks guys:wave:
here is my sample code for binary code somehow when i try to click the answer it only display 00000 when i press no like 98 or any other no..
Code:
Private Sub Binary_Click()
Dim df As Integer
Dim r As Integer
df = Val(lblDisplay.Caption)
lblDisplay.Caption = ""
Do While (df)
lblDisplay.Caption = r & lblDisplay.Caption
df = Int(df / 2)
Loop
End Sub