Search found 1775 matches

by Gregory Martin
February 4th, 2013, 2:10 pm
Forum: Entry
Topic: How can I use setvalueset with alphanumeric field? Resolved
Replies: 3
Views: 5373

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: 6615

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: 3119

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: 3698

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.
by Gregory Martin
January 23rd, 2013, 6:08 pm
Forum: Entry
Topic: toUpper() and toLower() in cyrillic
Replies: 2
Views: 4175

Re: toUpper() and toLower() in cyrillic

You're right that toupper and tolower only work with Latin characters. Can you tell me whether the Upper Case flag works for you? That is, add an alpha field to your data entry application and type in lowercase Cyrillic text. Does it show up in uppercase? If so, then I can easily resolve this issue ...
by Gregory Martin
January 23rd, 2013, 6:05 pm
Forum: Feature Requests
Topic: Split current record
Replies: 3
Views: 4938

Re: Split current record

Do you know that you can cut and paste items from one record to another? Select all the items and cut them (Ctrl+X, or from the Edit menu), and then you can paste them on a new record.

That should ease your task a little.
by Gregory Martin
January 23rd, 2013, 4:03 pm
Forum: Entry
Topic: How to delete wrongly entered variable
Replies: 3
Views: 5390

Re: How to delete wrongly entered variable

This question gets to the difference between operator and system controlled modes. If you are running your application in system controlled mode, the data that is skipped will remain on the form, though the fields will turn dark gray, indicating that the fields are skipped. When your case is saved t...
by Gregory Martin
January 17th, 2013, 6:01 pm
Forum: Editing
Topic: Delete after skip value
Replies: 4
Views: 7784

Re: Delete after skip value

Can you clarify your question. Perhaps you can also post some code that describes what you are attempting to do.

By deleting the value do you mean that you're trying to set the value to blank?
by Gregory Martin
January 17th, 2013, 3:29 pm
Forum: Entry
Topic: Linking sub-items to records
Replies: 5
Views: 8010

Re: Linking sub-items to records

Exporting from multiply occurring records with multiply occurring items is quite tricky. If you use the export tool, you essentially have to export the multiply occurring item data separate from the rest of the record. In that case, as you say, you can't determine what person has what job. You can o...
by Gregory Martin
January 17th, 2013, 2:05 pm
Forum: Entry
Topic: Attach an image/picture path (hyperlink)in a field
Replies: 4
Views: 6183

Re: Attach an image/picture path (hyperlink)in a field

The only place that you can put images in data entry applications is in the CAPI text. In that box you can insert bitmap images. You can't, however, make them hyperlinks. On a field you could simulate the behavior of a hyperlink by using the execsystem function to open a web browser with a specific ...