ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Enabling the .REP file
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Enables or disables the management of .REP files. For more details, see .REP file.
Note: By default, .REP file management is active.
Example
// Désactive la gestion du fichier .REP
HSetREP(False)
Syntax
<Result> = HSetREP(<Management> [, <Path of .REP file> [, <Name of .REP file>]])
<Result>: Boolean
Corresponds to the former management mode of.REP file (before the call to HSetREP):
  • True if the management of .REP files was enabled,
  • False if the management of .REP was disabled.
<Management>: Boolean
  • True if the management of .REP files is enabled,
  • False if this management must be disabled.
<Path of .REP file>: Optional character string
If this parameter is specified, HSetREP uses the .REP file located in the specified directory.
If this parameter is not specified, the default path corresponds to:
  • the previous path of the .REP file specified for the current analysis.
  • if no path was specified beforehand:
    1. the path of the analysis (.WDD),
    2. the path of the application library (.WDL)
    3. by default, the path of the application (.EXE). This is the most common case.
<Name of .REP file>: Optional character string
If this parameter is specified, HSetREP uses this name for the .REP file.
If this parameter is not specified, the name of the analysis is used as name for the .REP file.
In all cases, the extension of the .REP file is ".REP".
Remarks

Enabling the .REP file

  • If the <Management> parameter is set to True, the .REP file will be updated each time a data file is opened or created in the current analysis. Then, the tool for automatic data file modification will be able to identify the files that must be modified.
  • If the <Management> parameter is set to False, the .REP file is not updated. In this case, the location of these files must be specified manually to the tool for automatic modification of data files. If the name of the .REP file is specified, this name will be used for the next activation (if a new name is not specified in the meantime).
  • The .REP file is managed by context. A component that uses an independent HFSQL context will not be affected by the call to HSetREP.
Projects with multiple analyses: If only the parameter <Gestion> is specified, the modification is global to all analyses associated with the project.
Remark: When the .REP is not the default one, its location is stored in the file HFRep.ini. This file is located in the "Application Data\PC SOFT" directory of the shared data of the application (for backward compatibility with the earlier versions, this file can also be found in the Windows directory).
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help