ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Saving the selected attached file
  • Saving the selected attached file
EmailSaveAttachment (Example)
Saving the selected attached file
WINDEVJavaUser code (UMC) The following code is used to save the attached file selected in a List Box control on the local computer.
// -- 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 = fSelect("", "", "Saving the attached file"), ...
"*.*", "", fselCreate)
EmailSaveAttachment(LIST_Attach[Select], FileName)
END
Saving the selected attached file
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help