Quote Originally Posted by s123456 View Post
i'm glad you are all on the same page
why didnt anyone suggest less code?
i posted the question late last night .. i was tired...it was a trivial question but i decided to ask for advice
i was too busy trying to add code ...
Well, you were busy and tired... But why do you think we here were not busy nor tired?

As we already pointed out:
Quote Originally Posted by laserlight View Post
I suggest that you post your code without the line numbers but well indented in [code][/code] bbcode tags.
Quote Originally Posted by VictorN View Post
I agree with laserlight: your code is very hard to read/understand because is is not formatted properly.
And believe me: we also are busy enough to make a lot of work (like your code formatting/debugging) for you!
So, to make your and our work easier you have to post your question and code in the form to be read/understood without any additional efforts.
But instead of this (editing the OP adding code tags and doing the debugging) you again continue to complain...