Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

How to toggle 1 and 2

$
0
0
Without using If..Then how do I switch back and forth between 1 and 2

If the value in a 1 I want to make it 2 on exit from sub and if the value is 2 I want to make it a 1 on exit from sub

Actually I do not know which value it will be (without looking, of course) but it will be either 1 or 2 and I just want to make it the other value

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>