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