Hi,
I fully agree with Paul, but that does not answer the question. The syntax in you IF THEN ELSE seems to be OK, so the bug must be somewhere else.
Are you shure that all compared values are of the same kind (Byte, Word, single, integer.....). You CAN compare a byte to a word and other combinatitions, but you must be very careful and know exatcly what you are doing.
To me, the simplest way to find such bugs is to PRINT all involved vars to a PC. Can you do that?
↧