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.
  • Closing data files
  • Example for handling the data files installed locally and remotely
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
HSetRemoteAccess (Function)
In french: HGèreAccèsDistant
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
Warning
From version 17, HSetDistantAccess is kept for backward compatibility. This function is replaced by HSetRemoteAccess.
Temporarily disables the remote access in order to access HFSQL Classic data files found locally. By default, the remote access is automatically managed as soon as a remote analysis is opened by HOpenAnalysis.
Caution: The use of this function is reserved to experienced developers. The HSetRemoteAccess function only concerns HFSQL data files. Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Ouverture d'une analyse distante
HOpenAnalysis("ANADIST.WDD", "", "192.32.8.10", "MonLogin", "MotPasse")
// Ouverture d'un fichier distant
HOpen("MONFICDIST")
// ...
HSetRemoteAccess(False) // Ordres HFSQL suivants seront effectués en local
HOpen("MONFICLOC") // Ouverture d'un fichier de données local
// ...
HSetRemoteAccess(True) // Ordres HFSQL suivants seront exécutés en distant
// ...
HCloseAnalysis()
HSetRemoteAccess(True) // Ordres HFSQL suivants seront effectués en distant
HOpen(Client) // Ouverture d'un fichier distant
//...
HSetRemoteAccess(Commande, False) // Fichier de données Commande passe en local
HReadFirst(Client) // Lit le premier enregistrement en distant
HReadFirst(Commande) // Lit le premier enregistrement en local
Syntax
<Former mode> = HSetRemoteAccess([<Data file>, ] <Management mode>)
<Former mode>: Boolean
  • True if the remote access was managed before the use of the HSetRemoteAccessfunction,
  • False if the remote access was not managed before the use of the HSetRemoteAccessfunction.
<Data file>: Optional character string
Name of the data file used. Used to enable (or not) the management of remote access for a single data file.
If this parameter is not specified or if it corresponds to "*", the management of the remote access is taken into account for all the data files found in the analysis.
<Management mode>: Boolean
  • False to temporarily disable the management of remote access,
  • True to re-enable the management of remote access.
Remarks

Closing data files

Temporarily disabling the management of remote access does not close the data files used locally or remotely.

Example for handling the data files installed locally and remotely

  • Opening a remote analysis with HOpenAnalysis. The management of the remote access is enabled.
  • Opening the remote RPCFile data file with HOpen.
  • Browsing the remote RPCFile data file.
  • Temporary disconnection of remote access with the HSetRemoteAccessfunction.
  • Opening the local LocalFile data file with HOpen.
  • Browsing the local LocalFile data file.
  • Reconnecting remote access with HSetRemoteAccess.
  • The following data files are accessible:
    • Local LocalFile file,
    • Remote RPCFile file.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment