Sorry, your code is incomplete. Error could be anywhere. Are you getting compile errors? If so, post the error messages together with your code. If it compiles but simply does not work, then its a logic error and with incomplete code, difficult to guess.