what code have you tried so far? what is your cursor definition?