Post the rest of your code. I don't see any potential problems in the above code...

EDIT: Also, can you give us a better description of your error. The more details, the better!


xXxGuitar511
- Programmer