Returns the sequence number of an attached document.
Numeric
ATTACHMENTSEQ( attachmentName )
where attachmentName is the name of the attachment (Attachment Name) for which you want the sequence number.