Hello,
please give the code, otherwise it's not possible to tell where the problem is.