Search found 1794 matches

by Gregory Martin
May 14th, 2018, 8:14 am
Forum: Other
Topic: count le number of caracters in alphabetic variable content.
Replies: 1
Views: 3056

Re: count le number of caracters in alphabetic variable content.

The length function counts the number of characters. If you do not want to count blank spaces at the end of the string, you can add the strip function like this:
errmsg("NAME is %d characters", length(strip(NAME)));
by Gregory Martin
May 14th, 2018, 8:13 am
Forum: Editing
Topic: Reading CSDB files in sorted order
Replies: 2
Views: 4276

Re: Reading CSDB files in sorted order

You can add this to your PFF file: InputOrder=Indexed

See more here: http://www.csprousers.org/help/CSPro/ru ... edits.html
by Gregory Martin
May 10th, 2018, 1:09 pm
Forum: Entry
Topic: loadcase
Replies: 3
Views: 3597

Re: loadcase

The function loadcase loads from an external file, but you will also need to update the file by using writecase. Try putting this at the bottom of your code: PROC OTHSEC writecase (OTHERS); It will save the "other" data to the file after it has been entered on the external form.
by Gregory Martin
May 10th, 2018, 1:02 pm
Forum: Other
Topic: Asterix (*) in my data
Replies: 3
Views: 3762

Re: Asterix (*) in my data

The asterisks come if you have a value that is DEFAULT: http://www.csprousers.org/help/CSPro/special_values.html As was mentioned, this usually occurs because: 1) You modified the length of certain dictionary items so that the old data can no longer be read. If this is the case, then you will need t...
by Gregory Martin
May 9th, 2018, 9:05 am
Forum: Android
Topic: SQL Query on a dictionary
Replies: 2
Views: 3237

Re: SQL Query on a dictionary

The case data is stored as a single text value, so you can't really use SQL queries to extract data from it. We've discussed allowing such functionality in the future.

The purpose of the SqlQuery function at the moment is mostly to use with paradata logs.
by Gregory Martin
April 27th, 2018, 3:27 pm
Forum: Entry
Topic: locate function fails
Replies: 5
Views: 4438

Re: locate function fails

There are other ways to do this. For example, you could use the set last statement (see here: http://www.csprousers.org/help/CSPro/set_last_statement.html): set last(SURVEY_DICT); loadcase (SURVEY_DICT); You could also get a list of the keys and then load the last one, like this: PROC GLOBAL list st...
by Gregory Martin
April 27th, 2018, 3:22 pm
Forum: Entry
Topic: savepartial
Replies: 5
Views: 4309

Re: savepartial

It is documented, though perhaps in an odd place. You can see it here:

http://www.csprousers.org/help/CSPro/on ... ction.html
by Gregory Martin
April 27th, 2018, 3:21 pm
Forum: Entry
Topic: Errmsg/Warning on multiple lines
Replies: 4
Views: 3531

Re: Errmsg/Warning on multiple lines

You actually can put error messages on multiple lines by using \n, but they will only show on operator-controlled mode on Windows and in both modes on Android. At some point we'll have to make this consistent across all modes.
by Gregory Martin
April 24th, 2018, 10:11 am
Forum: Entry
Topic: savepartial
Replies: 5
Views: 4309

Re: savepartial

You could declare an OnStop function, which suppresses the partial save resume dialog, and then implement something yourself, like:
PROC MY_LEVEL

preproc

    if ispartial() then
        advance to getsymbol(savepartial);
    endif;
by Gregory Martin
April 24th, 2018, 10:08 am
Forum: Feature Requests
Topic: Do OperatorID settable and onexit() function
Replies: 2
Views: 19001

Re: Do OperatorID settable and onexit() function

If I understand you correctly, both are currently possible: 1) There is a setoperatorid function: http://www.csprousers.org/help/CSPro/setoperatorid_function.html 2) If you call execpff on Android without the stop parameter, then the PFF is queued for execution after your program closes. You can use...