Originally posted by nametullah
Yeh, i know what r u thinking slimdave, but problem is resolved. But i m also agree with u and ur example. Thanks for helping me.

Regards,

Nametullah kalair
Not a general solution though.
Slimdave's solution is the most general one.