That isn't very clear. I'm having a hard time understanding what you're trying to do.

If you provided some actual code it'd be easier for us to see what you're trying to do.