I actually I had an error compiling the code and that was sorted out in some other thread in the forum (by Skimask). Wonder why was it not corrected in this thread. Actually, I accidentally ran into the thread and found answers to the error.
Actually , I got good result in using Bruce's code earlier.
My application was a relay control with Toggle and Momentary action. While Toggle worked great , Momentary had a problem.
I hope your approach would help me.
Shall post the results soon.
Thank you once again for your code.
regards
Bookmarks