Search found 1781 matches

by Gregory Martin
February 14th, 2013, 2:26 pm
Forum: Feature Requests
Topic: Allow programmatic access to CAPI text
Replies: 2
Views: 4349

Re: Allow programmatic access to CAPI text

Unfortunately there is no way to programmatically access the CAPI text. However, you can get it in XML format if you want. To do this, go to the CSPro installation folder and run the tool ExportXMLMetadata. You can then select the QSF file that contains your CAPI text and you can export it to XML fo...
by Gregory Martin
February 12th, 2013, 4:54 pm
Forum: Entry
Topic: moving from roster to repeat entry in subsequent form
Replies: 2
Views: 3605

Re: moving from roster to repeat entry in subsequent form

Hey Emily, Can you clarify exactly what you're trying to do. It's a bit hard for me to understand without seeing your code. Might the endgroup statement work for your purposes, something like: PROC FIRST_FIELD_ON_SECOND_ROSTER preproc if curocc () > totocc (HL000) then endgroup ; endif ;
by Gregory Martin
February 12th, 2013, 4:46 pm
Forum: Entry
Topic: Numeric keyboard doesn't work properly
Replies: 4
Views: 5090

Re: Numeric keyboard doesn't work properly

This sounds strange. You might consider posting your application to this board so that we can look at it, or you can email it to me: gregory.martin@census.gov.

Is it possible that your application has an OnKey function which is overriding some of the numeric keypad keystrokes?
by Gregory Martin
February 4th, 2013, 10:24 pm
Forum: Other
Topic: Text Alignment
Replies: 3
Views: 4200

Re: Text Alignment

Under the text entry box where you enter your responses, click on the "Upload attachment" tab and then you can upload your image.
by Gregory Martin
February 4th, 2013, 2:28 pm
Forum: Entry
Topic: Any way to get a printout of a case, with value labels?
Replies: 9
Views: 11981

Re: Any way to get a printout of a case, with value labels?

Are you trying to avoid using another statistics package? Doing what you want would be quite easy if you exported the data to SPSS, Stata, or SAS formats. Otherwise there is no really easy way to do this (despite it seeming like a very easy task). You could write logic to do this, using the getlabel...
by Gregory Martin
February 4th, 2013, 2:14 pm
Forum: Entry
Topic: stop numeric in alpha field
Replies: 3
Views: 4624

Re: stop numeric in alpha field

There is no way to do this for every alpha field. You will have to do something similar to what Arshad mentioned, where you override the OnKey function and specify the fields where you don't want numeric values entered. Something like this: function OnKey(keystroke) OnKey = keystroke; if getsymbol (...
by Gregory Martin
February 4th, 2013, 2:10 pm
Forum: Entry
Topic: How can I use setvalueset with alphanumeric field? Resolved
Replies: 3
Views: 5386

Re: ¿How can I use setvalueset with a alphanumeric field?

I suspect that there are two problems here: 1) You are executing the code in the postproc of ALPHAFIELD_ACT1. Don't you want to run it before you get to the field? 2) CSPro isn't entirely consistent between when arrays are 0-indexed and when they are 1-indexed. The setvalueset function requires the ...
by Gregory Martin
February 4th, 2013, 2:04 pm
Forum: Entry
Topic: Delete function
Replies: 6
Views: 6656

Re: Delete function

The insert/delete functions are tricky. You don't use the record name but instead the "group" name, which you can find by looking at your form tree. It'll be similar to the record name, but with some numbers or letters added after it. For example, if you are writing a batch application and...
by Gregory Martin
January 28th, 2013, 5:25 pm
Forum: Entry
Topic: Adding a special value for "don't know" answers ?
Replies: 1
Views: 3130

Re: Adding a special value for "don't know" answers ?

If your "don't know" value is 888, then all of your fields will have to be at least three digits to store that code. Due to the fixed-length nature of CSPro data files, each item must be as wide as the maximum value that will be stored in the field. Often people have different codes for fi...
by Gregory Martin
January 28th, 2013, 5:19 pm
Forum: Entry
Topic: Change System Controlled to Operator Controlled Mode by code
Replies: 2
Views: 3723

Re: Change System Controlled to Operator Controlled Mode by

set path on; // turns on sytem controlled mode

set path off; // turns on operator controlled mode
This is a compile-time setting though. That means that you can't switch from system to operator controlled modes while the program is running.