Search found 2399 matches

by josh
February 17th, 2021, 6:31 pm
Forum: Other
Topic: Enumerating valuesets of an item in code
Replies: 1
Views: 209

Re: Enumerating valuesets of an item in code

No, there isn't any way to enumerate all the value sets of an item.
by josh
February 17th, 2021, 12:04 pm
Forum: Other
Topic: error executing dataviewer 7.5.1
Replies: 1
Views: 248

Re: error executing dataviewer 7.5.1

Since CSPro is not a well known program it often gets incorrectly flagged as a virus. We scan the software with Windows Defender before we release it but we cannot test it with every antivirus software available. There should be a way in your antivirus software to tell it to unblock the file. Most a...
by josh
February 17th, 2021, 11:58 am
Forum: Entry
Topic: Unable to verify roster - problem with free movement option?
Replies: 4
Views: 506

Re: Unable to verify roster - problem with free movement option?

Are you using system control or operator control mode? Is the roster set to free movement? If so does it work if you turn off free movement? If there is any logic in the fields in the roster try removing it and see if that works.
by josh
February 16th, 2021, 2:37 pm
Forum: Feature Requests
Topic: Requesting logic
Replies: 1
Views: 345

Re: Requesting logic

You can copy from one roster to another using subscripts. For example if have two rosters: ROSTERA and ROSTERB where ROSTERA has a field NAMEA and ROSTERB has a field ROSTERB then you can copy from row 3 of ROSTERA to row 3 of ROSTERB by doing something like NAMEB(3) = NAMEA(3). To copy every row of...
by josh
February 16th, 2021, 1:53 pm
Forum: Entry
Topic: Read a text file as an array
Replies: 1
Views: 414

Re: Read a text file as an array

Why not just store the data in an external data file and use writecase/loadcase?
by josh
February 12th, 2021, 8:50 am
Forum: Entry
Topic: Saved GPS reading is retained even after taking a new GPS reading
Replies: 12
Views: 1070

Re: Saved GPS reading is retained even after taking a new GPS reading

This code is not saving the latitude and longitude. It is setting them to blank: POLE_LATITUDE = gps(latitude); savesetting("POLE_LATITUDE", ""); POLE_LONGITUDE = gps(longitude); savesetting("POLE_LONGITUDE", ""); Try this: PROC POLE_GPS_TAKEN preproc errmsg ( "%s" , loadsetting ( "POLE_LATITUDE" ))...
by josh
February 12th, 2021, 6:38 am
Forum: Entry
Topic: Error when I try to export data
Replies: 2
Views: 344

Re: Error when I try to export data

Change the dictionary security options to allow export: https://www.csprousers.org/help/CSPro/dictionary_security_options.html Note that after you change the dictionary settings then when you export make sure to open the modified dictionary first rather than opening the data file directly. Otherwise...
by josh
February 12th, 2021, 6:28 am
Forum: Entry
Topic: Saved GPS reading is retained even after taking a new GPS reading
Replies: 12
Views: 1070

Re: Saved GPS reading is retained even after taking a new GPS reading

It looks like you deleted the logic that assigned the previously saved values to POLE_LATITUDE and POLE_LONGITUDE so of course they will be blank. In the preproc of POLE_GPS_TAKEN if there are saved values you need to set them. You use to have logic that did that but it seems to be gone in the list ...
by josh
February 11th, 2021, 8:08 pm
Forum: Entry
Topic: Saved GPS reading is retained even after taking a new GPS reading
Replies: 12
Views: 1070

Re: Saved GPS reading is retained even after taking a new GPS reading

Doing this: skip to COMPOUND_NUMBER; from PROC POLE_GPS_TAKEN is going to erase the values in POLE_LATITUDE and POLE_LONGITUDE. When you skip over fields they get set to blank when you save the data. You can use ADVANCE instead of SKIP. The easier way though is not to even put POLE_LATITUDE and POLE...
by josh
February 11th, 2021, 4:16 pm
Forum: Entry
Topic: Saved GPS reading is retained even after taking a new GPS reading
Replies: 12
Views: 1070

Re: Saved GPS reading is retained even after taking a new GPS reading

What I was suggesting before is that if the pole number has changed that you clear the saved values of latitude and longitude if the pole number is different from the old value. Something like: PROC I11_POLENUMBER preproc string lastPoleNumber = loadsetting ( "I11_POLENUMBER" ); if lastPoleNumber <>...