I am trying to create two data file with one external dictionary in the menu file using the Cspro 7 so i can have smooth data sync and i need advice. So in my situation, I have a project being conducted in two countries, (Country A and Country B) with same instrument and for simplicity i have done the file creation as one thus Project.csbd but rather I want to have two data files in my dropbox or FTP so I have created my pff files
Code: Select all
filewrite(pffFile,"[Files]");
filewrite(pffFile,"Application=" + pathname(Application) + "../Entry/Project2017.ent");
if Country=1 then
filewrite(pffFile,"InputData=" + pathname(Application) + "../Data/CountryA.csdb");
elseif Country =2 then
filewrite(pffFile,"InputData=" + pathname(Application) + "../Data/CountryB.csdb");
endif;
The alternative is to create the file as
Code: Select all
filewrite(pffFile,"InputData=%sProject2017_%0d.csdb" ,surveyDataPath, COUNTRY);
Regards,
Sah