Instance member GETFORMATTEDTEXT does not exist

this problem happen when I’m opening tickets in my Data Base (IGS Help Desk), specially when i type the employ number of the User in the textbox then show me the personal data of the Users (name,email, phone, location and Function). I had been checking my Lotus Notes configuration but nothing that I’ve been changed is working.

Subject: Coding error

GetFormattedText is a method of NotesRichTextItem. You could see that error if a programmer didn’t declare an object as NotesRichTextItem but rather just assumed an object of type Variant (undeclared) obtained by NotesDocument.GetFirstItem would be a NotesRichTextItem and tried to call the GetFormattedText method on the variant. If you turn on the LotusScript debugger, you should be able to find the offending line of code and take steps to correct.

Developers can avoid this sort of issue by using the best practice of enabling Option Declare.