AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Área de texto enriquecido
  • Saving the selected attached file
  • Saving the selected attached file
EmailSaveAttachment (Example)
Saving the selected attached file
WINDEVReportes y ConsultasJavaCódigo de Usuario (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
WEBDEV - Código ServidorAjax 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
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local