PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Saving the selected attached file
  • Saving the selected attached file
EmailSaveAttachment (Example)
Saving the selected attached file
Saving the selected attached file
WEBDEV - Server codeAjax The following code is used to save the attached file selected in a List Box control on the local computer (server).
// -- Initialize LIST_Attach
I is int = 0
FOR I = 1 TO Email.NbAttach
ListAdd(LIST_Attach, Email.Attach[I])
END
// -- Click of BTN_COPY
// Copy the selected attached file
Select is int = ListSelect(LIST_Attach)
IF Select <= 0 THEN
Info("Select an attached file")
ELSE
FileName is string
FileName = fCurrentDir() + "\Emails\"
EmailSaveAttachment(LIST_Attach[Select], ...
FileName + LIST_Attach[Select])
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment