Search found 63 matches

by Saint
April 26th, 2017, 8:47 pm
Forum: Entry
Topic: function who return the length of an numeric item from the dictionnary
Replies: 6
Views: 5478

Re: function who return the length of an numeric item from the dictionnary

Not sure what you mean.. Lets say if you have an entry of 333, you want to return the length as 3, and if you have 23456, you want to return the length as 5. Is that what you need a function for?
by Saint
April 22nd, 2017, 5:52 pm
Forum: Entry
Topic: correspondence
Replies: 2
Views: 3285

Re: correspondence

You can add a value set to the CODE variable for the NAMES and CORRESPONDING codes. You have to define CODE as alphanumeric, and the value set should look like: VALUE LABEL FROM 101 JOSH 102 GREG Then you can protect the CODE FIELD and add the following logic on the CODE variable: PROC CODE PREPROC ...
by Saint
April 20th, 2017, 7:58 am
Forum: Entry
Topic: Creating a Variable to Concat and Export a Daily Data
Replies: 3
Views: 4556

Re: Creating a Variable to Concat and Export a Daily Data

I am you you have a date on entry/capture variable somewhere in the program and so you can use this in your export batch file restrict the export to cases for the desired alone.
by Saint
April 15th, 2017, 4:25 pm
Forum: Editing
Topic: Batch file for resolving Duplicate caseid
Replies: 2
Views: 4599

Re: Batch file for resolving Duplicate caseid

Hi Sah,
Can you find any variable (or actually a set of variables) that will distinguish the cases with the duplicated IDs? If so then you can just add this/these variables to the CASE_ID variables in your export batch file. This should be a quick fix.
by Saint
March 31st, 2017, 8:33 pm
Forum: Entry
Topic: Multiple choice valuesets
Replies: 2
Views: 3830

Re: Multiple choice valuesets

Hi, I am guessing you have defined your value set with the options Math=1, English=2, Art=3 as you describe it, and then using checkbox to select them as multiple response. So in the dictionary value set on that variable, the option English and Arts = 23 does not exist. Not sure how many options you...
by Saint
March 29th, 2017, 9:51 pm
Forum: Entry
Topic: Linked-setvalue conversion problem
Replies: 2
Views: 2963

Re: Linked-setvalue conversion problem

Hi Hysin, Which variable is the Region that you want to reconstruct. Looking at the application, I think what you missed is a value set with all the options for the IDKEL and IDKEC questions. Also the fact that you used same codes for different KEL or KECs means that you need the full information on...
by Saint
March 14th, 2017, 10:48 am
Forum: Entry
Topic: savepartial() on System Controlled
Replies: 2
Views: 2673

Re: savepartial() on System Controlled

And maybe an aside: what is the 'else' supposed to do in the logic shown?

What is the difference between:

Code: Select all

if v3 is 1 then 
skip to V5
endif;
and:

Code: Select all

if v3 is 1 then 
skip to V5
else
endif;
by Saint
February 26th, 2017, 10:55 am
Forum: Android
Topic: Tablet repeating summary of previous case
Replies: 2
Views: 3976

Re: Tablet repeating summary of previous case

I guess we will need more details about how you are calculating the summaries to be able to help. If you can post the application (or at least the relevant part) then I can help out. There should be an easy fix.
by Saint
February 21st, 2017, 3:58 pm
Forum: Other
Topic: restrict barcode
Replies: 14
Views: 12274

Re: restrict barcode

My reservation with Gregory's code will be that it will flag something like SV01000 as an error although from what Mr. Taco says, it could be completely legit: there should be 5 numeric characters after SV.
by Saint
February 20th, 2017, 4:04 pm
Forum: Other
Topic: restrict barcode
Replies: 14
Views: 12274

Re: restrict barcode

Mr. Taco I get your point. If you want to restrict the numeric after SV to be 5 digits, then you full code can look something like this: if BARCODE = "" then skip to QN136A; elseif BARCODE[1:2] <> "SV" then errmsg("The barcode must start with SV."); reenter; elseif leng...