• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
      • Statement Format Symbols
      • Alphabetical List of Functions and Statements
      • List of Reserved Words
      • Deprecated Features
      • Declaration Statements
      • Symbol Functions
      • Item Functions
      • Array Object
      • Audio Object
      • Barcode and QR Codes
      • Case Object
      • Document Object
      • File Object
      • Freq Object
      • Geometry Object
      • HashMap Object
      • Image Object
      • List Object
      • Map Object
      • Path
      • Pff Object
      • SystemApp Object
      • ValueSet Object
      • Program Control Statements
      • Assignment Statements
      • Data Entry Statements and Functions
      • Batch Edit Statements
      • Numeric Functions
      • String Functions
      • Multiple Occurrence Functions
      • General Functions
      • Date and Time Functions
      • External File Functions
      • Synchronization Functions
        • SyncConnect Function
        • SyncConnect Function (CSWeb)
        • SyncConnect Function (Bluetooth)
        • SyncConnect Function (Dropbox)
        • SyncConnect Function (LocalDropbox)
        • SyncConnect Function (LocalFiles)
        • SyncConnect Function (FTP)
        • SyncServer Function
        • SyncDisconnect Function
        • SyncData Function
        • SyncFile Function
        • SyncMessage Function
        • SyncParadata Function
        • SyncApp Function
        • SyncTime Function
        • GetBluetoothName Function
        • SetBluetoothName Function
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

SyncConnect Function (LocalFiles)

This page describes the syncconnect function when connecting to a folder on the local computer such as the home directory of an FTP server. For generalized information on the function, see the documentation for the syncconnect function.
Format
b = syncconnect(LocalFiles, local_path);
Description
The syncconnect function opens a connection to synchronize data and files using the a folder on the local computer. The first argument must be the keyword LocalFiles and the second argument, the string expression local_path, must be the path to a local folder on the computer. Rather than synchronize files over the Internet this connection assumes that some other service, such as an FTP server, will handle file transfers. CSPro simply copies files and data to/from the local folder. This is mainly useful when downloading large quantities of data which would take a long time to do using a network connection.
Example
// connect to local folder
if syncconnect(LocalFiles, "C:/FTPDirectory/") then

   
// download the latest cases
    syncdata(GET, SURVEY_DICT);

   
syncdisconnect();

endif;
See also: Synchronization Overview, SyncConnect Function, SyncConnect Function (CSWeb), SyncConnect Function (Bluetooth), SyncConnect Function (FTP)