PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of httpProgress variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The httpProgress type is used to manage the progress when sending or receiving an HTTP request. The characteristics of Progress Management can be defined and changed using different WLanguage properties.
This type of variable is used by:
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Versions 22 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 22
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
Example
cMaRequête is httpRequest
cMaRequête.URL = "http://www.pcsoft.fr"
cMaRequête.DownloadProgress.Procédure = MaCallBack
cMaRéponse is httpResponse = HTTPSend(cMaRequête)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
Info(cMaRéponse.Content)
END
Remarks

Properties specific to the description of httpProgress variables

The following properties can be used to handle the progress when sending or receiving an HTTP request:
Property nameType usedEffect
FrequencyIntegerFrequency for calling the progress bar or the procedure, defined in number of bytes.
The frequency is set to 1000 bytes by default.
Remark: The specified frequency may not be respected.
WEBDEV - Browser code Not available.
ProgressBarCharacter stringName of the Progress Bar control used to follow the progress. This control will be notified of the progress at the specified frequency.
Caution: If Property s Procedure and Jauge are filled in, Property Procedure has priority for the call.
WEBDEV - Browser code Not available.
ProcedureCharacter stringName of procedure used to follow the progress. This procedure will be notified of the progress at the specified frequency.
This procedure has the following format:
PROCEDURE <Nom de la procédure>(<Total>, <Progression>)
where:
  • <Total> is the total number of bytes to transfer.
  • <Progress> is the number of bytes already transferred.
Caution: If Property s Procedure and Jauge are filled in, Property Procedure has priority for the call.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment