Strange Problem with NotesUIDocument class

Hi all,

I have one embedded subform where i m using uidoc’s fieldsettext method for clearing one field’s data on exiting .

I have declare globally uidoc in parent form . And It was working properly , But just now i m geting error says " Uidoc is not a sub or function ". I donot know why its coming .

Also I declared some function in parent form , and was using in subform , but its also giving error like function doesnot exist.

can any body figure it out , how its suddenly creating a prob ?

Rishi