The string argument
connection_string is a
synchronization connection string, generally a server URL or text identifying the service. This string contains information about the resource that CSPro will connect to, and any additional parameters (such as a username and password). Details about properties specific to each synchronization service are available on the documentation describing each of the services that CSPro supports:
| Synchronization Service | Example Connection String |
| Bluetooth | "Bluetooth" |
| CSWeb | "https://example.org/csweb/api" |
| Dropbox | "Dropbox" |
| FTP | "ftpes://example.org" |
| Local Files | "file:///C:/surveys/ftp-server" |
This is a CSPro
logic function. Similar functionality is available using the
Sync.connect action. When using actions, multiple synchronization sessions can be created, whereas using CSPro logic, there is only one session per call to
syncconnect.
Note: If the attempt to establish an Internet connection is unsuccessful, CSPro displays an error message. If you wish to preempt this error message in order to handle this situation on your own, use the
connection function to determine if Internet access is available.
The function returns a logical value of
1 (
true) if the connection was successful and
0 (
false) otherwise.
Prior to
CSPro 8.1, the
syncconnect function required as the first argument the specification of the type of synchronization service. This old syntax is still accepted but may not be supported in the future.