New to VB, trying to do some calculation codings in VB , but it doesn't seem to work?
I've stored the integer in to 'Access'.
Dim max_number As Integer = 63
If Access > max_number Then
Access = max_number
End If
While Access > max_number Or Access >= 0
If Access - 32 >= 0 Then
Access = Access - 32
Text1.Text = "1"
ElseIf Access - 16 >= 0 Then
Access = Access - 16
Text2.Text = " 1"
ElseIf Access - 8 >= 0 Then
Access = Access - 8
Text3.Text = "1"
ElseIf Access - 4 >= 0 Then
Access = Access - 4
Text4.Text = "1"
ElseIf Access - 2 >= 0 Then
Access = Access - 2
Text5.Text = "1"
ElseIf Access - 1 >= 0 Then
Access = Access - 1
Text6.Text = " 1"
End If
Access = 0
End While
Many Thanks.