Search found 1791 matches

by Gregory Martin
May 17th, 2018, 5:56 pm
Forum: Entry
Topic: Example folder
Replies: 2
Views: 2722

Re: Example folder

1) When you installed the program, did you make sure that the checkbox next to Examples was selected? 2) Have you tryed going to Help -> Examples Folder while in the CSPro Designer? If these don't work, you can get the examples from here: https://github.com/CSProDevelopment/examples Click on the gre...
by Gregory Martin
May 16th, 2018, 10:38 am
Forum: Android
Topic: showarray - Android
Replies: 1
Views: 2499

Re: showarray - Android

You are right about the problem. It was introduced during the addition of the "heading" feature. If you regenerated your .pen file using CSPro 7.1, it would work. The error existed if you used a .pen file generated using CSPro 7.0 on a device running CSPro 7.1. Thank you for the detailed r...
by Gregory Martin
May 15th, 2018, 12:22 pm
Forum: Entry
Topic: Delete whole folder and content
Replies: 2
Views: 2549

Re: Delete whole folder and content

The filedelete function can delete a directory, but not on both Windows and Android. (I believe that it works on Android.) We're planning on adding a dirdelete function to CSPro 7.2.
by Gregory Martin
May 15th, 2018, 12:19 pm
Forum: Entry
Topic: Use of new Synchronization
Replies: 4
Views: 4167

Re: Use of new Synchronization

First read the overview in the helps:

http://www.csprousers.org/help/CSPro/sy ... ation.html

Then, if you still have questions, please describe what you are trying to do. There are lots of topics on the forum related to synchronization.
by Gregory Martin
May 15th, 2018, 12:18 pm
Forum: Other
Topic: how check if the number is ODD or even
Replies: 1
Views: 2817

Re: how check if the number is ODD or even

You can check the remainder when dividing by two:
if VALUE % 2 = 0 then
    errmsg("VALUE is EVEN");
endif;
by Gregory Martin
May 14th, 2018, 8:19 am
Forum: Android
Topic: Error running application on android
Replies: 11
Views: 9185

Re: Error running application on android

When using a text data file, an index is also created. For example, if my data file is called example.dat, then an index file exists called example.dat.csidx. You are seeing that message because for some reason the Android file system cannot delete that index file. Are these files in the csentry fol...
by Gregory Martin
May 14th, 2018, 8:15 am
Forum: Entry
Topic: Dynamic Labels
Replies: 1
Views: 2068

Re: Dynamic Labels

Look at the Simple CAPI example in the CSPro examples folder. Take a look at PROC MAIN_LANGUAGE, which constructs a dynamic value set based on the selections in LANGUAGES_SPOKEN.
by Gregory Martin
May 14th, 2018, 8:14 am
Forum: Other
Topic: count le number of caracters in alphabetic variable content.
Replies: 1
Views: 2950

Re: count le number of caracters in alphabetic variable content.

The length function counts the number of characters. If you do not want to count blank spaces at the end of the string, you can add the strip function like this:
errmsg("NAME is %d characters", length(strip(NAME)));
by Gregory Martin
May 14th, 2018, 8:13 am
Forum: Editing
Topic: Reading CSDB files in sorted order
Replies: 2
Views: 4139

Re: Reading CSDB files in sorted order

You can add this to your PFF file: InputOrder=Indexed

See more here: http://www.csprousers.org/help/CSPro/ru ... edits.html
by Gregory Martin
May 10th, 2018, 1:09 pm
Forum: Entry
Topic: loadcase
Replies: 3
Views: 3537

Re: loadcase

The function loadcase loads from an external file, but you will also need to update the file by using writecase. Try putting this at the bottom of your code: PROC OTHSEC writecase (OTHERS); It will save the "other" data to the file after it has been entered on the external form.