PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of httpProgress variables
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The httpProgress type is used to manage the progress when sending or receiving an HTTP request. The characteristics of the progress management can be defined and modified by several WLanguage properties.
This type of variable is used by:
Note: See Declaring a variable for more details.
Versions 22 and later
Android Widget This type of variable is now available in Android Widget mode.
Android This type of variable is now available for the Android applications.
WEBDEV - Browser code This property is now available in browser code.
New in version 22
Android Widget This type of variable is now available in Android Widget mode.
Android This type of variable is now available for the Android applications.
WEBDEV - Browser code This property is now available in browser code.
Android Widget This type of variable is now available in Android Widget mode.
Android This type of variable is now available for the Android applications.
WEBDEV - Browser code This property is now available in browser code.
Example
cMyRequest is httpRequest
cMyRequest..URL = "http://www.windev.com"
cMyRequest..DownloadProgress..Procedure = MyCallback
cMyResponse is httpResponse = HTTPSend(cMyRequest)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
Info(cMyResponse..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.
Note: 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 both ..Procedure and ..ProgressBar are specified, ..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 <Procedure Name> (<Total>, <Progress>)
where:
  • <Total> is the total number of bytes to transfer.
  • <Progress> is the number of bytes already transferred.
Caution: If both ..Procedure and ..ProgressBar are specified, ..Procedure has priority for the call.

Note: These properties can be used via one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
AndroidAndroid Widget

Limits

This type of variable is available for the devices equipped with ARM processors. A fatal error occurs if this type of variable is used with devices not equipped with ARM processors (x86, mips, ...). This type of variable is available for the devices equipped with ARM processors or using an ARM emulation. Otherwise (and on the Samsung Galaxy Tab 3 tablet), a fatal error will occur.
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment