Search found 2401 matches

by josh
August 14th, 2024, 7:13 am
Forum: Other
Topic: Interesting CSPro compiler quirk I found today
Replies: 5
Views: 5693

Re: Interesting CSPro compiler quirk I found today

Yeah, in Haskell an expressions is not evaluated until you actually access it. Kind of like if it was wrapped in a lambda in C++.
by josh
August 2nd, 2024, 11:42 am
Forum: Other
Topic: Interesting CSPro compiler quirk I found today
Replies: 5
Views: 5693

Re: Interesting CSPro compiler quirk I found today

I'll change that for CSPro 8.1.
or just lean into lazy evaluation and don't evaluate any expressions until they are used. The set of CSPro users who also program in Haskell will be forever grateful :D
by josh
March 17th, 2021, 8:44 pm
Forum: Entry
Topic: Use SetProperty instead of Set Attributes Statement on CSPRO 7
Replies: 1
Views: 4776

Re: Use SetProperty instead of Set Attributes Statement on CSPRO 7

To make a field protected use: setproperty(FIELDNAME, "Protected","Yes"); To make it NOT protected use: setpropertyFIELDNAME, ("Protected","No") Full list of options is in the help for SetProperty https://www.csprousers.org/help/CSPro/setproperty_function.html
by josh
March 17th, 2021, 9:02 am
Forum: Entry
Topic: Cannot include multiple variables in selcase function
Replies: 7
Views: 13394

Re: Cannot include multiple variables in selcase function

I would implement this using forcase with a where clause to find the appropriate cases in the data file and then display the result using errmsg or a dynamic value set.
by josh
March 17th, 2021, 8:08 am
Forum: Entry
Topic: Cannot include multiple variables in selcase function
Replies: 7
Views: 13394

Re: Cannot include multiple variables in selcase function

What exactly do you want to do? Maybe there is a different function that would help.
by josh
March 17th, 2021, 8:00 am
Forum: Synchronization
Topic: Bluetooth data synchronization CSPro 7.5
Replies: 10
Views: 18660

Re: Bluetooth data synchronization CSPro 7.5

Thank you for the very excellent test application. I was able to easily reproduce the problem. This is a bug that occurs because the server application opens the data file as read-only. We will fix it in the next release. In the meantime there is a workaround. If you add a writecase statement somewh...
by josh
March 17th, 2021, 7:22 am
Forum: Entry
Topic: Cannot include multiple variables in selcase function
Replies: 7
Views: 13394

Re: Cannot include multiple variables in selcase function

You can include multiple variables with the include clause:

Code: Select all

selcase(OCCUPATION_DICT, "Plantation") include(OCCUPATION_CODE,OCCUPATION_SUMMARY_LEVEL);
by josh
March 16th, 2021, 3:33 pm
Forum: Synchronization
Topic: Bluetooth data synchronization CSPro 7.5
Replies: 10
Views: 18660

Re: Bluetooth data synchronization CSPro 7.5

Can you post your application or send it to us at cspro@lists.census.gov? Also please send steps to reproduce the problem and let us know whether you are using Android for client and server or if it is Windows and Android.
by josh
March 16th, 2021, 3:24 pm
Forum: Android
Topic: Avoid/skip GPS on Laptop/computer
Replies: 2
Views: 5345

Re: Avoid/skip GPS on Laptop/computer

You can use the getos() function to check if you are on Windows or Android and skip the GPS capture if you are on Windows: https://www.csprousers.org/help/CSPro/g ... ction.html
by josh
March 14th, 2021, 7:00 pm
Forum: Entry
Topic: Error (100101) Error connecting to server: Error 500
Replies: 14
Views: 21097

Re: Error (100101) Error connecting to server: Error 500

We made some changes since CSPro 7.1 to speed up the upload/download of cases that allows DataViewer to send larger numbers of cases in a single request. It is possible that this is overloading the server in your case. Previously DataViewer would send only 100 cases at a time, now it continues to do...