AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Gestión de correos electrónicos
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Manages a progress bar while sending and receiving emails.
Note Sending or receiving Email includes both the message and the files attached to the Email.
Ejemplo
// Display the progress bar in the PROGBAR_EmailProgress control (Syntax 1)
EmailProgressBar(PROGBAR_EmailProgress)
...
// Cancel this progress bar
EmailProgressBar("")
WINDEV
// The progress bar is managed by the ManageProgress procedure (Syntax 2)
EmailProgressBar(ManageProgress)
// Procedure
PROCEDURE ManageProgress(TotalByte, TotalTransmitted)
Message("Transfer in progress: " + TotalTransmitted + " / " + TotalByte)
PROGBAR_EmailProgress = TotalTransmitted/TotalByte
WINDEV
// The progress bar is managed by the EmailProgress event (Syntax 3)
EmailProgressBar("EmailProgress")

// -- Initialization code of window
Event(ManageBar, "*.*", "EmailProgress")
// -- Procedure
PROCEDURE ManageBar(TotalByte, TotalTransmitted)
Trace("Transfer in progress: " + TotalTransmitted+ " / " + TotalByte)
Sintaxis

Displaying the progress bar in a Progress Bar control Ocultar los detalles

EmailProgressBar(<Name of Progress Bar control> [, <Frequency>])
<Name of Progress Bar control>: Character string
Name of the Progress Bar control where the progress bar will be displayed. This control must exist in the current window.
If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10.000 (the progress bar is refreshed every 10 KB).
Caution: this frequency is for guidance only.

Managing the progress bar via a procedure Ocultar los detalles

EmailProgressBar(<WLanguage procedure> [, <Frequency>])
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure that will manage the progress bar.
This procedure has the following format:
PROCEDURE <Procedure name> (<Total>, <Progress>)
where:
  • <Total> is the number of bytes to transmit or to receive.
  • <Progress> is the number of bytes already transmitted or received.
These parameters can be used in the procedure at any time.
If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10,000 (the procedure is called every 10 KB).
Caution: this frequency is for guidance only.
WINDEV

Managing the progress bar via an event Ocultar los detalles

EmailProgressBar(<Event name> [, <Frequency>])
<Event name>: Character string
Name of the event that will be run during the progress. This event must be processed by Event. In this case:
  • the wParam parameter (the 1st parameter of the event) will correspond to the amount of bytes to send
  • the lParam parameter (2nd parameter of the event) will correspond to the amount of bytes already sent.
    If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10,000 (the event is triggered every 10 KB).
Caution: this frequency is for guidance only.
Observaciones
  • EmailProgressBar must be called before the read and send email functions.
  • EmailProgressBar can only be used for the SMTP, POP3 and IMAP protocols. This function is not available in Outlook.
Componente: wd300com.dll
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/03/2025

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