ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
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
HCS.Timeout (Variable)
In french: HCS.DélaiReponse
HFSQL Client/ServerAvailable only with this kind of connection
The HCS.Timeout variable is used to modify the connection timeout:
  • for the connections established by HOpenConnection.
  • for the automatic connection openings.
Remark: The HCS.Timeout variable is ignored for the accesses to the server other than the connection. A request whose execution is longer than the value specified in the HCS.Timeout variable would not be interrupted for example..
This timeout must be specified in the client application, before opening a connection on the server.
Example
HCS.Timeout = INTRANET
Syntax
HCS.Timeout = <Value>
<Value>: Integer constant, Integer or Duration
Value of connection timeout. Corresponds to a timeout in milliseconds (greater than 500) or to one of the following preset constants:
InternetTimeout used for the connection: Value suited for Internet (long response time)
IntranetTimeout used for the connection: Value suited for Intranet (short response time)

This parameter can be:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • the duration in a readable format (e.g., '1s' or '10ms').
Minimum version required
  • Version 11
This page is also available for…
Comments
Example
GLOBAL

gsUser, gsSenha, gsToken is string = ""

HCS.Timeout = INTERNET

HCS.FrameSize = hInternetFrame

HModifyStructure("*",hmsBackgroundTask)

HCreationIfNotFound("*")

IF HOpenConnection(MyHfsql_Local) = True THEN

HChangeConnection("*",MyHfsql_Local)

END

IF HOpenConnection(MyHfsql_Server) = True THEN

HChangeConnection("*",MyHfsql_Server)

END
Boller
06 Apr. 2021

Last update: 09/07/2023

Send a report | Local help