hi there
please provide some more detials on the scenario and if possible any sample application in which you want to apply the logic.
You can post the same on my email as attachement will try my level best to resolve your queries.
Regards
Vishal
[email protected]