The
syncconnect function opens a connection to a CSWeb server to synchronize data and files over the Internet. The first argument must be the keyword
CSWeb. The second argument,
csweb_url, is a string expression of the full URL of the CSWeb server. The third and fourth arguments,
username and
password are optional string arguments of the credentials used to login to the server. If the username and password are not specified, the user will be prompted to enter them the first time the synchronization is run. After the credentials have been entered the first time, they are saved in secure storage on the device and do not need to be entered again. You can use the
CSPro Settings dialog to clear any cached credentials.
Note: If the attempt to establish an internet connection was unsuccessful, CSPro will alert you with an error message. If you wish to preempt this error message in order to handle this situation on your own, use the
Connection Function.