Function AttachFile() As
AttachFile (Note As NotesDocument, Filename As Variant, SaveWithName As Variant, Rtitem As NotesRichtextItem, ReAttach As Integer, SaveDoc As Integer, KillFile As Integer, ShowPBar As Integer) As Integer
This function is being replaced by the function EmbedFile() and is kept for compatibility reasons. In matter of fact it is calling EmbedFile() with an additional fixed parameter. Please refer to the function EmbedFile().