/ Forums / Advansys Formativ / Creating Solutions with Formativ / How can i get the creation Date of an attachment / Reply To: How can i get the creation Date of an attachment

#7008
Support 1a
Participant

    Further to my response above (based on the assumption you wish to obtain the creation date of a file attachment), if you want to access the creation date of a message attachment, you could do something like:

    dim oMsg
      dim oAttachment
     
      Set oMsg = client.clientstate.commandmessage
     
      for each oAttachment in oMsg.attachments
        if (oAttachment.objtype = fgwmessage) then
          msgbox oAttachment.message.subject & vbcrlf & oAttachment.message.creationdate
        end if
      next
     
      set oMsg = nothing