PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP


  • Reconnection to the server
  • 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
HReconnect (Function)
In french: HReconnecte
Establishes a reconnection to the server for all the interrupted connections. The uninterrupted connections are not modified.
Notes:
  • To use this feature, the HFSQL server and the client application must be in version 14 or later.
  • By default, when a connection error occurs, the mechanism for assisted management of errors displays a window or a page allowing the user to reconnect. This mechanism can be customized by HOnError.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Syntax
<Result> = HReconnect()
<Result>: Boolean
  • True if the reconnection was performed,
  • False otherwise. HErrorInfo returns more details about the problem.
Remarks

Reconnection to the server

An application can lose the connection to the server for one of the following reasons:
  • loss of GPRS link.
  • intervention on the network.
  • update of the server.
  • crash of the server.
  • standby of the client computer.
HReconnect allows the client to reconnect to the server without having to restart the application.

Limits

The reconnection cannot be performed in the following cases:
  • The application includes a transaction in progress. Indeed, the transaction was automatically canceled by the server when the client was disconnected.
  • The application has locked the entire data file.
  • The application has performed a "read/write" lock on a data file.
  • The application has performed a lock in "write mode" on a data file and another application has modified this record while the application was not connected.
  • The application performed a lock in write mode with HFirst, HNext, HPrevious or HLast.
  • A view or a query is currently filled and a browse was started on this view or query.
In these different cases, <Result> is set to False.
Business / GUI classification : Business Logic
Component : wd250hf.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment