Search found 1791 matches

by Gregory Martin
August 7th, 2012, 7:24 pm
Forum: Entry
Topic: Mdifying valuesets that contain images
Replies: 5
Views: 5907

Re: Mdifying valuesets that contain images

Value Set Images is a feature that was added to CSPro a while back and was never fully implemented. That's why you have to go through the route of manually modifying the dictionary file to enable the feature. That shows you how little confidence we have in the feature. ;) When you call the setvalues...
by Gregory Martin
August 7th, 2012, 5:38 pm
Forum: Entry
Topic: Export data and reformat option
Replies: 5
Views: 9078

Re: Export data and reformat option

Regarding the second question: The Generate Forms option will always create forms without formatting. It will create one form for each record in your dictionary. If you want to use your existing forms, you would be better off: 1) Opening your original application and making the change to the diction...
by Gregory Martin
August 7th, 2012, 5:16 pm
Forum: Entry
Topic: Export data and reformat option
Replies: 5
Views: 9078

Re: Export data and reformat option

Regarding the first question: Sometimes exporting data from multiply occurring items is difficult. If you run your export and look at the listing file, you will probably see something like this: W 31072 Unable to generate EXPORT' file-name 'C:\USERS\XXX\DESKTOP\TRAINING\TRAINING\DATA_1\ASSETS.TXT' b...
by Gregory Martin
July 31st, 2012, 9:59 am
Forum: Editing
Topic: Delete function
Replies: 3
Views: 6115

Re: Delete function

This is a weird quirk of the CSPro language. The delete function actually expects a group name, not a record name. A group is a section of your application that repeats. For a data entry application, think of a roster as a group. Often the name of the group will be the same as the record name, plus ...
by Gregory Martin
July 24th, 2012, 10:18 am
Forum: Entry
Topic: Data entry--inability to generate index for data file
Replies: 3
Views: 4777

Re: Data entry--inability to generate index for data file

Does your dictionary have any ID items specified? If not, your application needs at least one ID item. Are you running the application on a drive or folder that you need administrative rights to access? Or that is read-only? For example, the "C:\Program Files\CSPro 4.1\Examples" folder req...
by Gregory Martin
July 24th, 2012, 10:07 am
Forum: Tools
Topic: Concatenation and sort by case ID
Replies: 6
Views: 13738

Re: Concatenation and sort by case ID

Ah, then you don't need my code at all. You can continue to use fileconcat with the *.dat wildcard. But what you'll have to do is write out a .ssf (sort specification file) and a .pff to run the sorting. Then you can use execpff to sort the data file, and then open the file in your web browser. Does...
by Gregory Martin
July 24th, 2012, 10:04 am
Forum: Tools
Topic: RDBMS data's storage tools
Replies: 7
Views: 14197

Re: RDBMS data's storage tools

My comment was way too optimistic. There won't be any RDBMS support built into CSPro before 2013 at a minimum.

However, it's possible that before the support is built-in, a tool might come out to provide a temporary link between CSPro data and a relational database.
by Gregory Martin
July 23rd, 2012, 7:24 pm
Forum: Tools
Topic: Concatenation and sort by case ID
Replies: 6
Views: 13738

Re: Concatenation and sort by case ID

There's no way to do this easily because the fileconcat function doesn't take a parameter that specifies the order of the files to be concatenated. However, with some logic, you can achieve your goal. You can call the dir command, specifying the sort order, and redirecting this to a file. Then you c...
by Gregory Martin
July 23rd, 2012, 10:23 am
Forum: Entry
Topic: Id-variables not filled, please reenter
Replies: 7
Views: 10319

Re: Id-variables not filled, please reenter

Every CSPro dictionary must have a group of ID items that are used to distinguish one case from another. IDs are what tell CSPro what makes up a case. For example, in a survey, IDs might be something like: cluster number & household number. Your case must have IDs, and you must fill them out in ...
by Gregory Martin
July 23rd, 2012, 9:54 am
Forum: Entry
Topic: How to write logic that will sum 2 variables
Replies: 1
Views: 3639

Re: How to write logic that will sum 2 variables

In general to sum two variables you simply use the + operator: numeric monthsSince0AD = YEAR * 12 + MONTHS; However, you might also want to look at the cmcode function. This function is useful for operations using dates. Another function datediff , is good if you want to do date comparisons when a d...