PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use in direct mode
  • Opening ports
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
Opens a replication in direct mode or with a replication server. This replication was defined by the replication editor (ReplicEdit).
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 19
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 22
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Example
// Opens a replication in direct mode
ReplicOpen("MyReplication")
// Opens a replication on the replication server
ReplicOpen("MyReplication", "", "ReplicationServer", "Flora", "password")

// Initializes the replication by passing the zip code
// to take into account
IF ReplicInfo("MyReplication", replicInitialized) = False THEN
ReplicInitialize("MyReplication", 47012)
END

// Starts the synchronization
ReplicSynchronize("MyReplication")
Syntax

Opening a replication in direct mode Hide the details

<Result> = ReplicOpen(<Replication Name> [, <Working Directory>])
<Result>: Boolean
  • True if the replication was opened,
  • False if an error occurred. For more details about the problem, use ErrorInfo.
<Replication Name>: Character string (with quotes)
Name of replication file to open (file with a ".wer" extension), with no path and no extension. This file was created by the replication editor (ReplicEdit). This file must be found beside the executable.
<Working Directory>: Optional character string (with quotes)
Directory where the replication will be performed (creation of files required by the replication). By default (or if this parameter corresponds to an empty string ("")):
WINDEVWindows Mobile this directory corresponds to the directory of the application executable (directory returned by fExeDir).
iPhone/iPad this directory corresponds to the "<,Application_Home>/Documents/" directory.
Android this directory corresponds to the "<app dir>/databases/wmrpl" directory.

Opening a replication with a replication server Hide the details

<Result> = ReplicOpen(<Replication Name> , <Working Directory> , <Server Address> , <User Name> , <Password>)
<Result>: Boolean
  • True if the connection was established with the replication server,
  • False if an error occurred. For more details about the problem, use ErrorInfo.
<Replication Name>: Character string (with quotes)
Name of replication to open. This name corresponds to the publication name of replication.
<Working Directory>: Character string (with quotes)
Directory where the replication will be performed (creation of files required by the replication). By default (or if this parameter corresponds to an empty string ("")):
WINDEVWindows Mobile this directory corresponds to the directory of the application executable (directory returned by fExeDir).
iPhone/iPad this directory corresponds to the "<,Application_Home>/Documents/" directory.
Android this directory corresponds to the "<app dir>/databases/wmrpl" directory.
<Server Address>: Character string (with quotes)
Address of the replication server. This address can correspond to:
  • the IP address of server in xxx.xxx.xxx.xxx format
  • the name of server.
<User Name>: Character string (with quotes)
Name of user on the replication server.
<Password>: Character string (with quotes)
User password on the replication server.
Remarks

Use in direct mode

The call to this function is optional in direct mode because it is automatically called by the other replication functions (with the default parameters) if it was not called beforehand.

Opening ports

This function is using the replication server that is using the Web server on which it is installed. Therefore, port 80 must be opened on the replication server.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rpl.dll
Windows Mobile wp230rpl.dll
Linux wd230rpl.so
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment