Search found 1801 matches
- April 15th, 2024, 10:32 am
- Forum: Entry
- Topic: HTMLdialog hide buttons
- Replies: 6
- Views: 950
Re: HTMLdialog hide buttons
What is your resolution setting? https://www.windowscentral.com/how-set-custom-display-scaling-setting-windows-10 If 125%, try at 100% and see if it you still have a problem. Regardless, these HTML dialogs were designed with screen resolution in mind, so we'll have to take a look and see if we can i...
- April 15th, 2024, 10:30 am
- Forum: Entry
- Topic: How to identify the usage of the arrow keys
- Replies: 6
- Views: 1008
Re: How to identify the usage of the arrow keys
Regarding the OnKey function, which does indeed work only on Windows, you can use the OnKey Character Map to determine the keystrokes for left, right, etc.:
https://www.csprousers.org/help/CSPro/o ... r_map.html
https://www.csprousers.org/help/CSPro/o ... r_map.html
- April 15th, 2024, 10:29 am
- Forum: Tools
- Topic: Export To Stata: 2+ Multiple-Occurence Records
- Replies: 1
- Views: 1319
Re: Export To Stata: 2+ Multiple-Occurence Records
Exporting data from cases where multiple records contain multiple occurrences is always tricky. Your best options are: 1) Change the Output... to "All in One Record." 2) Keep "As Separate Records" but run multiple exports, one for each repeating record, and then combine the data ...
- April 11th, 2024, 9:20 am
- Forum: Android
- Topic: Stranging behaviour of multi language CAPI application: Showing previous case value set and CAPI Text
- Replies: 4
- Views: 761
Re: Stranging behaviour of multi language CAPI application: Showing previous case value set and CAPI Text
I'm not sure if this is fully the issue, but when I was testing your code, there were some issues after changing from English to Hindi and then trying to change back to English. The reason is that you are using two codes for English. In the dictionary, English is defined with the name "EN."...
- April 11th, 2024, 9:15 am
- Forum: Entry
- Topic: How to identify the usage of the arrow keys
- Replies: 6
- Views: 1008
Re: How to identify the usage of the arrow keys
On Windows, you can also keep track of all keys:
numeric lastKeystroke;
function OnKey(keystroke)
lastKeystroke = keystroke;
exit keystroke;
end;
Then you can look at lastKeystroke to determine if the last pressed key was an Enter, left arrow, tab, right arrow, etc.function OnKey(keystroke)
lastKeystroke = keystroke;
exit keystroke;
end;
- April 8th, 2024, 10:46 am
- Forum: Entry
- Topic: How to generate plus code(postman) from latitude and longitude (GPS)
- Replies: 2
- Views: 638
Re: How to generate plus code(postman) from latitude and longitude (GPS)
There is no built-in functionality within CSPro to do this, but you could likely create your own algorithm to do this by looking at Google's source code for calculating these. For example: https://github.com/google/open-location-code/tree/main/js Perhaps we'll include support for Plus Codes in a fut...
- March 21st, 2024, 9:13 am
- Forum: Entry
- Topic: Urgent Assistance Needed: Script Overflow Issue Causing Program Shutdown!
- Replies: 5
- Views: 6942
Re: Urgent Assistance Needed: Script Overflow Issue Causing Program Shutdown!
Typically you do this with a lookup file. You create a lookup file, typically in Excel, that maps the IDSTUDENT value to the depto, muni, etc. variables. This makes it easier to maintain your mappings, will speed up your program immensely, and will avoid the problem of the script overflow. Take a lo...
- March 21st, 2024, 9:11 am
- Forum: Entry
- Topic: Date Capture Type
- Replies: 2
- Views: 3306
Re: Date Capture Type
You can set it in the preproc, like this:
PROC E120
preproc
// if the date has not been previously assigned, set it to today's date
if visualvalue(E120) = notappl then
E120 = sysdate("DDMMYYYY");
endif;
preproc
// if the date has not been previously assigned, set it to today's date
if visualvalue(E120) = notappl then
E120 = sysdate("DDMMYYYY");
endif;
- March 20th, 2024, 6:53 am
- Forum: News
- Topic: CSPro 8.0 released
- Replies: 5
- Views: 6071
Re: CSPro 8.0 released
You'll always be able to install old versions of CSPro, which you can find here: https://www.csprousers.org/downloads The main difference is that we won't fix bugs in old versions, and you won't have access to new features. We'll still provide support though, as many users, including some big ones, ...
- March 18th, 2024, 8:05 am
- Forum: Entry
- Topic: Itemlist function
- Replies: 4
- Views: 2165
Re: Itemlist function
You can replace itemlist calls with maketext with the %v formatter, which formats values as they are defined in the dictionary:
itemlist(ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04, L_V05, A01)
maketext("%v%v%v%v%v%v%v", ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04, L_V05, A01)
maketext("%v%v%v%v%v%v%v", ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04, L_V05, A01)