PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
HChangeRplDir (Function)
In French: HChangeRepRpl
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
Modifies the location for the description of subscriber replica (RPL file). This function must be used on the subscriber computer.
This function is an advanced function for the logged replication. It should be used when handling databases not connected by network for example. In this case, the master replica and the subscriber replica are created on the same computer (master computer). Then, the RPL file (file of subscriber replica) is copied onto the subscriber computer.
This file can be installed:
  • in the replication directory specified in the analysis (\RPL sub-directory of data files by default).
  • in another directory. In this case, the subscriber application must use HChangeRplDir to specify the location where the file of subscriber replica must be sought. Indeed, when the subscriber data file is opened, the RPL file is read in order to define the range of automatic identifiers used by the data file.
By default, the replication files are managed in the directory specified in the analysis ("Analysis description", "Log/Replication" tab).
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// The RPL file and the data files are found in the same directory
HChangeRplDir(".")

// The RPL file is found in the \RPL sub-directory of the data files
HChangeRplDir(".\RPL")

// The RPL file is found in "X:\Data\RPL"
HChangeRplDir("X:\Data\RPL")
Syntax
<Result> = HChangeRplDir(<New Location of Subscriber Replica File>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred. HErrorInfo is used to identify the error.
<New Location of Subscriber Replica File>: Character string (with quotes)
New access path to the *.RPL file corresponding to the subscriber replica (full or relative path). This directory is used:
  • when opening a HFSQL data file in replication on the subscriber computer. The range of automatic identifiers is updated.
  • when performing the synchronization (HSynchronizeReplica for example) if no directory is specified.
    Note: if the directory is a relative directory, the directory will be relative to the default directory of the data files defined in the analysis.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rpl.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment