Program now works - Got rid of High/Low's and replaced with 1's or 0's
DerStrom & Ian:
Tks for your reply
All my flags are defined as bits. Some bits are pic I/O bits defined by Symbols.
I went through my whole program - sometimes I would say high (or low) xxxxx and sometimes I would say xxxxx = 1 (or 0)
I changed all my High (or low) xxxxx's to xxxxx = 1 (or 0) and had no more problem of my program missing "If xxxxx = 1 (or 0) Then ......"
Question: Is High xxxxx any better than xxxxx = 1 or is it simply if I use High xxxxx, then I should also use "If xxxxx = High Then ....." not "If xxxxx = 1 Then ....."
Usually my IF statements check for one or zero, so I thought I should also make all my settings the same and it worked. Is there anything else I should know about this stuff?
The comment that I should use == made me think there is probably a difference between logic and numeric compares, although I don't claim to completely understand this process yet.
One other thing I don't understand and maybe I should post it as a different question but am I correct in thinking I cannot jump out of a (IE I have to let the instruction finish normally) If .. Then / else / endif or a while / wend loop? To exit I should either set a flag or change the count?
Can you recomend a simple book/writeup etc that gives a little more explanation/some examples on this stuff?
Tks in advance
Mike