Search found 2399 matches

by josh
May 31st, 2016, 2:55 pm
Forum: Entry
Topic: Operator/System Controlled programmatically
Replies: 3
Views: 3711

Re: Operator/System Controlled programmatically

Unfortunately, there is no way to write an application that can execute in both operator and system controlled modes, depending on something that happens in logic. What mode you run in has to be known when the program starts. Your best option may be to create a second data entry application, using t...
by josh
May 28th, 2016, 10:06 am
Forum: Entry
Topic: create a separate file
Replies: 17
Views: 13557

Re: create a separate file

You can use an external dictionary along with the writecase function to write data to an external file. There is an example called "Using External Files & Forms" in the examples directory (C:\Program Files (x86)\CSPro 6.3\Examples).
by josh
May 25th, 2016, 4:24 pm
Forum: Feature Requests
Topic: Survey management Dash board
Replies: 3
Views: 4668

Re: Survey management Dash board

We are working on an example that we can share that we will include with version 7. The systems we have helped build belong to the countries that we were working with so we are not able to share them. Perhaps other readers in the forum have examples that they can share in the meantime.
by josh
May 25th, 2016, 7:01 am
Forum: Feature Requests
Topic: Survey management Dash board
Replies: 3
Views: 4668

Re: Survey management Dash board

In surveys/censuses we have worked on we have implemented supervisor dashboards using CSPro menu programs. We have talked about building a general survey management system into CSPro but since the requirements for each survey and each organization are very different it is difficult to create a gener...
by josh
May 23rd, 2016, 3:53 pm
Forum: Editing
Topic: Unique ID for every section
Replies: 5
Views: 9226

Re: Unique ID for every section

Since you are running this on existing data you should put the logic to add the individual number in a batch edit application. Run the batch edit application using the original data file as the input file and specify the name of a new file to use as the output file. Batch edit never modifies the inp...
by josh
May 21st, 2016, 8:48 am
Forum: Editing
Topic: Unique ID for every section
Replies: 5
Views: 9226

Re: Unique ID for every section

I'm assuming that the individuals in each household are in record occurrences - i.e. you have one or more records in your dictionary that are repeated for each individual. If that is the case then you can add a new item to the record for the individual and fill it in using a batch edit program using...
by josh
May 20th, 2016, 6:35 am
Forum: Entry
Topic: Formatting CSDiff - Text Viewer
Replies: 1
Views: 3007

Re: Formatting CSDiff - Text Viewer

CSPro doesn't support changing the format of the CSDiff output.
by josh
May 18th, 2016, 3:52 pm
Forum: Other
Topic: Please use string variables instead of alpha in logic
Replies: 2
Views: 3693

Re: Please use string variables instead of alpha in logic

Definitely use array string instead of array alpha.
by josh
May 18th, 2016, 12:09 pm
Forum: Other
Topic: Please use string variables instead of alpha in logic
Replies: 2
Views: 3693

Please use string variables instead of alpha in logic

We see a lot of code that gets posted to this forum or sent to the cspro mailing list that still uses alpha variables in logic. For example: PROC GLOBAL alpha ( 50 ) name; In all but a few very rare cases you should instead string variables: PROC GLOBAL string name; The alpha logic variable is a rel...
by josh
May 17th, 2016, 7:22 am
Forum: Entry
Topic: log file
Replies: 1
Views: 2827

Re: log file

We have not implemented logging on Android yet. This will come in a future release. For now you could implement your own logging using an external dictionary or filewrite.