If I have two byte variables Check and Days.
If Days only range from 1 to 7, can we check bits in Check based on Days?
For example, lets say if Days=5, I am having trouble with the following method:
In the above example I want to check bit 5 of Check variable.Code:if Check[Days]=1 then goto whatever
Is there any other method to do the above task?


 
		
		 
						
					 
			 
			 
			 
					
					 Checking Bit of a Byte using another variable
 Checking Bit of a Byte using another variable
		

 Originally Posted by aratti
 Originally Posted by aratti
					


Bookmarks